I have a question about iPhone programming for you. I'm building an app where I show the user the closest restaurant to the restaurant. I am using a navigation based application to develop.
-
I want the user to press a button on the first screen which allows him to go to screen 2.
-
From Screen 2, here the user user will see a table of all restaurants.
-
Once the user selects a restaurant from this table, the user gets one-third of the screen
-
Here, Users will see a map where the user sees where it is, and where the restaurant is located.
I am using Core Lecos Framework to calculate the user's location at the beginning, and then search for places near the database using the database. What am I confused about, should I do this method in RootviewController? Will I move the button in the View Deedload () method, which will then trigger the
- (zero) location manager: (CLLocationManager *) Manager updated Tue location: (CLLocation *) newLocation FromLocation: (CLLocation *) old location
method?
Any suggestions?
Everyone who replies, thank you in advance.
There are a few different ways to do this.
-
Use a UITabBarController with three tabs, one for each of your views when you want auto-transition on the next screen, then
[myTabBarController setSelectedIndex:] < / Code> or
[myTabBarController set selected ViewController:]
to use. -
Pattern after a flip-view "Utility Application". You can create a project by using the utility app template for example code. The main difference is that instead of flipping from the back to the front, you are flipping for a third view controller.
-
Use a UI controller and
pushViewController: Animated:
Second and Third View Controller
Comments
Post a Comment