Thursday, 15 April 2010

ios - UITexfield Custom Position moved up because of different iPhone sizes -



ios - UITexfield Custom Position moved up because of different iPhone sizes -

i have several custom uitextfields in app. started app on xcode 5 , ran on iphone 5 simulator. after xcode updated xcode 6, ran app on iphone 6 simulator. textfield positions moved because of big screen size. wanted know there positions of textfields automatically adjusted depending upon iphone models.

you need rebuild interface handle different screen sizes. in particular, need work autolayout feature help determine how want scale/move/position based on multiple screen sizes. can done via storyboard (easier frustrating) or in code (harder @ first more command later). utilize storyboards , it's worked great on several projects.

do want centered , respecting original layout , margins? distance top or sides? scaled appropriately? these things can done autolayouts.

check out great tutorial here more information: http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1

ios objective-c iphone xcode uitextfield

No comments:

Post a Comment