Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wellington2k

macrumors regular
Original poster
Jun 4, 2011
131
0
Hello.

So, I have a tableview application with a UIView squished on the top.
On that UIView I have a Navigation Bar. When I tap on one of the cells it switches views to bring me to a description. But when I tap back, my Navigation Bar is gone. Any help?

Screen Shot 2012-01-13 at 8.50.48 AM.pngScreen Shot 2012-01-13 at 8.51.49 AM.png
 
It's something I do.

I just don't use the standard.

I don't really know what code to put down.

All of it is just a standard NSMutableArray:
Code:
cellarray = [[ NSMutableArray alloc] initWithObjects:@"1",@"2",@"3",@"4", nil];
with a standard code to put it in the cells:
Code:
cell.textLabel.text = [cellarray objectAtIndex:indexPath.section];

That's it.
 
It's something I do.

I just don't use the standard.

I don't really know what code to put down.

Then you are likely to have to solve your own problems as 99.99% of the rest of the programming world will not be doing what you are doing.

I fail to see how any of the code is relevant. Or helpful. Or even understandable as single statements without knowing what methods they are in are pointless.

How is the view structure setup? How does the navigation work in the absence of the standard and well understood navigation controller? Which objects are responsible for maintaining references to the views?
 
I found out that this problem has nothing to do with the Navigation Bar.

It's the UIView that is at the top.

What's selected in the photo.
Screen Shot 2012-01-13 at 10.18.21 AM.png
 
What are you trying to accomplish that cannot be done with the standard UINavigationController?

Seems like you are going out of your way to reproduce functionality that already exists.
 
1. Create a navigation controller
2. Push views onto it to dig deeper into your data
3. Pop views off of it to come back

Use the standards. They are there because they work. The Apple documentation has a bunch of examples that do this as does every iOS course on iTunes U.
 
Wirelessly posted (Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

Great! Would you be willing to share your final solution with the community?
 
Here is the FULL solution.

I was not using a Navigation View Controller.

I was using a regular View Controller with a UIView on the top.

You have to use a Navigation View Controller.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.