开发者

App crashing after adding scrollView

I added a scrollView as subView to self.view using IB but the app keep crashing with Terminating app due to uncaught exception 'CALay开发者_Go百科erInvalidGeometry', reason: 'CALayer bounds contains NaN: [nan nan; 320 460]'

IDK if I am adding a scrollView the right way. I just drag 1 scrollView out from the IB Library and enlarge it size such that it covers the entire view.

IB http://img15.imageshack.us/img15/5104/unledcnd.png


You're putting an wrong value on some frame of a view that gets added to the scroll view...

Probably is the X and Y position of the UIScrollView, as the dimensions are 320x460.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜