iphone - how to create a UIView with a UINavController and a UITableView -
i have app and, when press 'i' button, show app view, need have view, background image, uinavigationcontroller , uitableview. how can achieve that, interfacebuilder, or progamatically? it's not done in appdelegate. need done on view. have following code, creates uinavcontroller , uitableview. code i'me unable put uiimage in background:
uitableviewcontroller *tableviewcontroller = [[uitableviewcontroller alloc] initwithstyle: uitableviewstylegrouped]; tableviewcontroller.title = @"about"; uinavigationcontroller *navcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller: tableviewcontroller]; navcontroller.modaltransitionstyle = uimodaltransitionstylefliphorizontal; [self presentmodalviewcontroller:navcontroller animated:yes]; [navcontroller release]; [tableviewcontroller release];
how can it?
thanks, rl
not sure if work worth @ try:
tableviewcontroller.backgroundcolor = [uicolor colorwithpatternimage:[uiimage imagenamed:@"whatever.png"]];
Comments
Post a Comment