开发者

Brining the UISearch bar from any position: iPhone

Im creating this app for the iPhone and what I want to do is bring up a hidden search bar from any position of a view when scrolling. I currently have it sitting on top of the view.

I want to be able开发者_如何转开发 to invoke the hidden search bar from any postion as the user scrolls. The search bar can ONLY be used from the top position as of right now. If any one can point me to the right direction that would be great.


I recommend putting UISearchBar above your UIScrollView via [view insertSubview:searchBar aboveSubview:scrollView]. Then you can just call [searchBar setHidden:NO] and your search bar will appear on the screen.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜