繁体   English   中英

苹果会在自动布局警告上拒绝我的应用程序吗?

[英]Will apple reject my app on autolayout warnings?

我制作了针对iOS 6的iPhone应用

我的应用程序运行非常平稳,并且在启动过程中以及应用程序中的任何位置都没有崩溃。.但是我的应用程序显示了一些与autolayout相关的警告。

我为解决此警告做了很多尝试,但未成功。

NSLog中的警告:

Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0xac85e50 h=-&- v=-&- UIViewControllerWrapperView:0xac745f0.height == UINavigationTransitionView:0xab9b110.height - 64>",
    "<NSLayoutConstraint:0xac71d60 V:[UITableView:0xb161200(307)]>",
    "<NSLayoutConstraint:0xac73230 UITableView:0xb161200.bottom == UIView:0xac72b20.bottom>",
    "<NSLayoutConstraint:0xac731b0 V:|-(>=153)-[UITableView:0xb161200]   (Names: '|':UIView:0xac72b20 )>",
    "<NSAutoresizingMaskLayoutConstraint:0xac84610 h=-&- v=-&- UIView:0xac72b20.height == UIViewControllerWrapperView:0xac745f0.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabcac10 h=-&- v=-&- UILayoutContainerView:0xc085ad0.height == UIWindow:0xc06c990.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabcca20 h=--- v=--- V:[UIWindow:0xc06c990(568)]>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc8dd0 h=-&- v=-&- UITransitionView:0xc086e40.height == UILayoutContainerView:0xc085ad0.height - 49>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc7660 h=-&- v=-&- UIViewControllerWrapperView:0xab9b5d0.height == UITransitionView:0xc086e40.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc42e0 h=-&- v=-&- UINavigationTransitionView:0xab9b110.height == UILayoutContainerView:0xab9b190.height>",
    "<NSAutoresizingMaskLayoutConstraint:0xabc5a00 h=-&- v=-&- UILayoutContainerView:0xab9b190.height == UIViewControllerWrapperView:0xab9b5d0.height>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0xac71d60 V:[UITableView:0xb161200(307)]>

Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

由于此警告,如果我将其提交到App Store,我的应用程序将被拒绝吗?

Apple在批准过程中不会考虑警告。 动态检查查找未记录的方法,私有API等,然后还检查内容。 由于我的代码中存在第三方库,我也有一些警告,并且没有任何我的应用程序因警告而被拒绝。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM