开发者

iPhone Custom Text Field

I want to create a simple calculator application. I know a text field will display the calculations but is t开发者_运维知识库here any other way to display the results to the screen. Or increase the text field. I want a larger option.

Thanks


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜