Saturday, December 7, 2013

At the top of tableviewcontroller increased by a UINavigationBar, how can we not as a fixed table list at the top of the screen to scroll?

Increase in tableviewcontroller in a UINavigationBar, but always follow a scrolling tableview, how can fixed on the top of the screen, a scroll tableview not follow the
Adding UINavigationBar code below
 
UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemAdd target: self action: @ selector (buttonPress :)];
UINavigationItem * navItem = [[UINavigationItem alloc] init];
navItem.rightBarButtonItem = item;
navItem.title = @ "patient list";
UINavigationBar * naviBar = [[UINavigationBar alloc] init];
naviBar.items = [NSArray arrayWithObject: navItem];
naviBar.frame = CGRectMake (0.0, 0.0, self.view.frame.size.width, 44.0);
[Self.tableView addSubview: naviBar];
[NavItem release];
[NaviBar release];



Reply:
The BAR you are directly on the tableview, of course, sliding ah.
Reply:
cited a floor reply:
you this BAR is applied directly to the tableview, of course, sliding ah.


I added the view nor ah
[Self.view addSubview: naviBar];

Reply:
Recommended for an implementation on UINavigationController plus a UITableView.
Reply:
1 self.tableview.center you move down 44 pixels, is just the height of a tablebar;
2 Create a tablebar, plus the self.view.

Reply:
Fourth floor of methods tried it, to the point of it. .
Reply:
reference to the second floor of the reply:
cited a floor reply:

The BAR you are directly on the tableview, of course, sliding ah.


I added the view nor ah
[Self.view addSubview: naviBar];


That is, in the most basic to add that View.

You say the problem does not occur.

Reply:
No you add a view in the top few buttons and then add their own. Looks the same.

No comments:

Post a Comment