找到你要的答案

Q:Obj-C: Autolayout IB auto generated at build time for view with fixed frame.marker

Q:Obj-C:自动版式IB自动生成在建立固定frame.marker查看时间

After I push viewController,it uses xib and autolayout,It crash when it appear.It crash with the error log below:

auto generated at build time for view with fixed frame.marker{id: 4168} + <251:1>*0x1884aea0:IB auto generated at build time for view with fixed frame.marker{id: 4170} + <251:1>*0x1884af30:IB auto generated at build time for view with fixed frame.marker{id: 4176} + <251:1>*0x1884af60:IB auto generated at build time for view with fixed frame.marker{id: 4178} + <251:1>*0x1884aff0:IB auto generated at build time for view with fixed frame.marker{id: 4184} + <251:1>*0x1884b020:IB auto generated at build time for view with fixed frame.marker{id: 4218} + <251:1>*0x1884b0b0:IB auto generated at build time for view with fixed frame.marker{id: 4224} + <251:1>*0x1884b0e0:IB auto generated at build time for view with fixed frame.marker{id: 4226} + <251:1>*0x1884b220:IB auto generated at build time for view with fixed frame.marker{id: 4186} + <251:1>*0x1884b2b0:IB auto generated at build time for view with fixed frame.marker{id: 4192} + <251:1>*0x1884b2e0:IB auto generated at build time for view with fixed frame.marker{id: 4194} + <251:1>*0x1884b370:IB auto generated at build time for view with fixed frame.marker{id: 4200} + <251:1>*0x1884b3a0:IB auto generated at build time for view with fixed frame.marker{id: 4202} + <251:1>*0x1884b430:IB auto generated at build time for view with fixed frame.marker{id: 4208} + <251:1>*0x1884b460:IB auto generated at build time for view with fixed frame.marker{id: 4210} + <251:1>*0x1884b4f0:IB auto generated at build time for view with fixed

I find the only crash in iOS 7 devices,while normal in iOS 8 ,there is a similar issue XCode 6 project crashing after segue on ios 7.1 ,but it cannot solve my question

can you please tell me why this could be happening?I donnot know which of my constraint wrong,I runs it several times and gets in the way when trying to read output. Thank you in advance =)

当我把视图,它使用xib和自动版式,它崩溃时,它出现了。它崩溃与下面的错误日志:

auto generated at build time for view with fixed frame.marker{id: 4168} + <251:1>*0x1884aea0:IB auto generated at build time for view with fixed frame.marker{id: 4170} + <251:1>*0x1884af30:IB auto generated at build time for view with fixed frame.marker{id: 4176} + <251:1>*0x1884af60:IB auto generated at build time for view with fixed frame.marker{id: 4178} + <251:1>*0x1884aff0:IB auto generated at build time for view with fixed frame.marker{id: 4184} + <251:1>*0x1884b020:IB auto generated at build time for view with fixed frame.marker{id: 4218} + <251:1>*0x1884b0b0:IB auto generated at build time for view with fixed frame.marker{id: 4224} + <251:1>*0x1884b0e0:IB auto generated at build time for view with fixed frame.marker{id: 4226} + <251:1>*0x1884b220:IB auto generated at build time for view with fixed frame.marker{id: 4186} + <251:1>*0x1884b2b0:IB auto generated at build time for view with fixed frame.marker{id: 4192} + <251:1>*0x1884b2e0:IB auto generated at build time for view with fixed frame.marker{id: 4194} + <251:1>*0x1884b370:IB auto generated at build time for view with fixed frame.marker{id: 4200} + <251:1>*0x1884b3a0:IB auto generated at build time for view with fixed frame.marker{id: 4202} + <251:1>*0x1884b430:IB auto generated at build time for view with fixed frame.marker{id: 4208} + <251:1>*0x1884b460:IB auto generated at build time for view with fixed frame.marker{id: 4210} + <251:1>*0x1884b4f0:IB auto generated at build time for view with fixed

我在iOS 7设备上找到的唯一的崩溃,而在iOS 8正常,有类似问题的Xcode 6项目在iOS 7.1继续崩溃后,但这不能解决我的问题

你能告诉我为什么会发生这种事吗?我不知道我错了,我跑的约束,它几次,得到的方式在试图读取输出。预先谢谢你)

answer1: 回答1:

Try this

Okay, looks like you should add viewDidAppear for this. Moving the code to viewDidAppear may worked perfectly.

Hope it helps.

试试这个

好吧,看来你应该添加viewdidappear。移动代码viewdidappear可能工作得很好。

希望它帮助。

objective-c  crash  autolayout  xib  crash-reports