PDA

View Full Version : Making a button lead to a pre-existing view?




JamesFoote
Sep 26, 2008, 12:24 AM
My app currently has the following menu:

http://img340.imageshack.us/img340/617/picture1fk8.png (http://imageshack.us)

I want to make the first link lead to another view that I already made. The view I want the button to lead to reads RSS feeds.

I know I need to add a subview but I'm pretty confused with this one part so if anyone could help that would be really great

Thanks in advance! :D



PhoneyDeveloper
Sep 26, 2008, 12:37 AM
You should use a UITableView for this kind of UI. It will do a lot of the work for you.

JamesFoote
Sep 26, 2008, 12:52 AM
hmmm.... OK - i'll try out that alternative.

If anybody still knows how to solve this problem though that would be great!

Niiro13
Sep 26, 2008, 11:52 AM
The problem is that you're dragging tableview cells into a non table view view.

You definitely want to use a tableview, because it can be dynamic and you wouldn't have to update the application everytime a new application comes out.

But if you're using buttons, then you need to do it programatically. Create an IBAction, then in the code, push the view controller.