iphone sdk add table controller to uiview

Discussion in 'Mac Programming' started by Narmer, May 27, 2008.

  1. Narmer macrumors newbie

    Joined:
    May 16, 2008
    #1
    Hi,

    I want to build a similar interface like stopwatch. I want to add a uitablecontroller to uiview, but I don't know how can I do this. Somebody can help me?

    Thanks,
     
  2. tacoman667 macrumors regular

    Joined:
    Mar 27, 2008
    #2
    Don't take this verbatim but here is the gist of it.

    Code:
    
    UIView *myView = [UIView alloc];
    	
    	UITableViewController *tableViewController = [[UITableViewController alloc] init];
    	
    	[myView addSubview:[tableViewController view]];
    
    
     
  3. Narmer thread starter macrumors newbie

    Joined:
    May 16, 2008

Share This Page