How to change textbox height for ipad using interface constructor?

We are using Interface Builder to develop an application for the iPad, and we cannot figure out how to increase the height of the text fields.

When we used IB to develop an application for osx, you can go to the attributes of the text fields, and under the control section you can set the line break to wrap words instead of a clip.

When we try to use the Interface Builder apps for the iPad, it has no way to change the linebreak style by attributes → control.

Is there a way to set the height using Interface Builder or do you need to set this in code?

+3
source share
6

, Interface Builder. , UITextField XIB, textField.borderStyle = UITextBorderStyleRoundedRect viewDidLoad.

, textField UITextField IBOutlet.

+9

iOS UITextField .

, UITextView.

+6

1 - /xib " " → " ".

2 - xml TextField,

<textField opaque="NO" clipsSubviews="YES" tag="102" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="6872" borderStyle="roundedRect" placeholder="Password" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Dxw-lR-kq5">
<rect key="frame" x="20" y="337" width="335" height="30"/>

3 - height , (, 50)

4 - " " → " "

5 - .

enter image description here

+4

, .

+1

ui ,

[self.searchText setFrame:CGRectMake(180, 450, 400, 250)];
//in my case the object was called search text...
0

UIText IB. IB. . . Enter... Done!!!! ( )

0

All Articles