UITextField not scrolling horizontally

后端 未结 2 1838
醉梦人生
醉梦人生 2020-12-21 04:25

I am trying to make a small calculator app. When a UIButton is pressed, the Button title is added to a UITextField.

kind of:

myuitextfield.text = [my         


        
2条回答
  •  天涯浪人
    2020-12-21 05:05

    you have to add UITextview and limit the number of lines to 2.Textfield doesnt work with two lines.Textview is same as textfields except the delegates and some properties differ.

提交回复
热议问题