iphone - How can I set position of 3 UITable and 2 Navigation Bar? -


my xib has 3 uitable , 3 navigation bar.uitables dynamic scale , use navigation bar seperate uitable , show title of uitable name.

i want set first navigation bar under first table , second navigation bar under second table.

i try find frame of first table position x,y , height of table don't work.

- (void)viewdidload {     blah blah...     cgrect table1frame = table1.frame; //but don't work } 

i don't know each table frame. please me or guide me.thank much

i'm not sure understand you're trying do, keep in mind geometry of view controller's view (its bounds) not yet set when viewdidload called. bounds (and frames) of subviews have not been set either. means frames pretty set 0 @ point. and, may noticing if trying access view's frame, or frame of of subviews,

so, if need based on view's geometry (on frame or frame of of subviews), done in viewwillappear.

your problem may not where table view's frame, when it. looking in right place (the table view's frame property), early. hope helpful.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -