简体   繁体   中英

Which view controller should I use?

I would like to create a social media app with 4 main pages. It looks something like this. 在此处输入图片说明

The connection arrow is mean swipe direction. However, I m not sure use what kind of controller to suit my situation. I watched some tutorial like this . I am not sure using UIPageViewController , UIScrollView or customize a self controller. Also, if I use UIPageviewController UIScrollView or customize a self controller. Also, if I use UIPageviewController how can I set the "middle" (the search) page always showing first? Also, if I use UIScrollView or UIPageViewController how can I swipe top like the image above?

You can accomplish this by using UIPageViewController or use 3rd party Library like this . To make your search view as root view controller just select search view in storyboard and check "Is initial View Controller" in inspector.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM