How to make a navigation-based app?

Discussion in 'iOS Development' started by Cokegod, Aug 21, 2009.

  1. Cokegod

    Cokegod Member

    Joined:
    Aug 6, 2009
    Messages:
    332
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    I tried many guides, but nothing helps, when I make a navigation-based app I can't write anything in those lines in the app. Can someone give me a very simple guide to write something in those lines in the navigation app? I guess the guides I used were out of date.
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Import the CoreLocation framework and possibly the MapKit framework and use them. As you would any other framework.

    You might want to try looking at http://developer.apple.com/iphone for some sample apps.
  3. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    I think he means a UITableView not an actual "Navigation" app.
  4. Cokegod

    Cokegod Member

    Joined:
    Aug 6, 2009
    Messages:
    332
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Yep, that what I mean.
    SkylarEC I also tried your guide, and it didn't work.
  5. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    What guide did you try, and which problems did you have?

    If you want a UINavigationController based app, then just use Xcode to start a UINavigationBased project, and everything will work fine. If you want to do it in code, then just create a view controller that will be the navigationController's rootViewController. Then create the UINavigationController withRootViewController:rootViewController. Finally, add the navigationController.view as a subview or content view of the window.
  6. Cokegod

    Cokegod Member

    Joined:
    Aug 6, 2009
    Messages:
    332
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    I mean, I made a UINavigationController based app, but I can't write anything in those lines inside it.
  7. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    If you mean you want to fill the table with data, you must assign a datasource to your tableview, and complete the required(and any additional you wish) methods for UITableViewDataSource.
  8. Cokegod

    Cokegod Member

    Joined:
    Aug 6, 2009
    Messages:
    332
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    How do I do this? Can you give me a guide or something?
  9. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)

Share This Page