Nick
Nick

Reputation: 1

iPhone Custom Text Field

I want to create a simple calculator application. I know a text field will display the calculations but is there any other way to display the results to the screen. Or increase the text field. I want a larger option.

Thanks

Upvotes: 0

Views: 663

Answers (2)

Vivek Gajbe
Vivek Gajbe

Reputation: 411

For simple calculator application you can use UITextField or UIlabel for displaying your result. (Both are use for displaying output)

If you need to display static text with no editing features and no selection features, you should use a UILabel.

If you need selection or editing, use UITextView.

Upvotes: 0

Matthias Bauch
Matthias Bauch

Reputation: 90117

use UILabel instead of a UITextField.

If you need the textfield to show the keyboard you can move your textfield off screen and call [textfield becomesFirstRsponder]; from code.
But I would recommend a custom keyboard anyway.

Upvotes: 1

Related Questions