开发者

MKMapView hides all controls on the view

I have added UIButton, UITextField and MKMapView in UIViewController. I bind all co开发者_JS百科ntrols to properties. But when I run application there is no button and textField, only map. I have navigation controller and I was thinking that it hides controls but no. Is there any additional option that must be set when adding more controls with MKMapView in one View?

And I forgot to tell. In UITextField I have hardcoded value ("London") and in set location on map I get value from that UITextField and it works. So field is somewhere on the screen but it seams that map hides it somehow.

But, if I in view editor make map smaller it somehow fine. But why I must make it so small in editor to be fine in run mode?

MKMapView hides all controls on the view

MKMapView hides all controls on the view


maybe you should bring your UIButton, UITextField with

[self.view bringSubviewToFront:UIView] 

to the front.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜