Scrollview not showing textfield

I have a scrollview with frame (0, 64, 320, 44), i'm trying to add a subview "UITextfield" with frame size of (20, 7, 280, 30), I'm doing everything in storyboard. it looks good, i can see the textfield on top of scrollview However, when i run the project, in simulator, i don't see the textfield, i have to scroll up to see the textfield. i'm not doing any offset, i'm using xCode 5, but when i do the same thing on xCode 4.6, it works like a charm.

Does anyone know if it's an xcode issue or am i doing anything wrong?

Answers


Try using

[self setAutomaticallyAdjustsScrollViewInsets:NO];

Need Your Help

Can I measure branch prediction failures on modern Intel Mac OS X?

xcode macos optimization profiling branch-prediction

I would like to measure branch prediction fails on Xcode for Intel processors on Mac OS X, with the obvious intent of speed optimization.

Spring - dynamically switch between application contexts in the request handler

java spring

I would like to implement a RESTful web service using Jersey/Spring which switches between application contexts depending on the host name to which the request was made (similar to virtual hosting)...