Looks like it should be easy: Landscape text box scrolling

I have an app I am working on that is in landscape mode and does not rotate. However, I cannot get the textbox to rotate. I've worked for many hours, so don't be rude if this is a simple answer ...

+1


source to share


2 answers


Are you using Interface Builder to create a view? In this case, adding a UITextField to a UIView in landscape mode. If you don't know how to use IB to create views in landscape mode, open a UIView object in IB. There is a small arrow in the upper right corner of the window. Click this arrow to rotate the view to landscape mode.



+1


source


Modify the Info.plist file to include the Initial Device Orientation key and point to UIDeviceOrientationLandscapeLeft (the Home button should be on the right if the app opens in landscape orientation as recommended by Apple UI). Some samples come with this property already in the plist, but most don't.



0


source







All Articles