开发者

How can I keep the number pad always appear in uiview?

I am making an uivivewcontroller which I want the number pad 开发者_C百科always appear like this.

How can I keep the number pad always appear in uiview?

How can I make that? Plus, why the upper view which looks like a uitableviewcontroller seems unscrollable? Is that not a uitableview, how can it be made? All in all, I'd like to make a view which looks very similar to this page. What approach is best for me? add subview?

Thanks for any help!


To make your screen to looks like that page, the easiest way is just to design your screen in IB with the the navigation bar, image, button and all. Then, add your text field and called

yourTextField.setDelegate = self;
     yourTextField.keyboardType = UIKeyboardTypeNumberPad;
     [yourTextField becomeFirstResponder];


In any UITextField you use on your UIViewController, just call [myTextField becomeFirstResponder];

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜