tags:

views:

61

answers:

2

Hey, I want to have a UIView at the top half of my app, and a UITable at the bottom half. If I create a basic window application I can do this using IB. My main problem is that I seem to be only to do this in the delegate file which I would like to avoid.

I repeat the exact same steps I did in delegate in a separate controller and all I get is a blank screen.

0@interface RootViewController : UIWindow {
    UIWindow *myWindow;
    UIView *headerView;
    UITableView *tableView;
}
@property (nonatomic, retain) IBOutlet UIView *headerView; 
@property (nonatomic, retain) IBOutlet UITableView *tableView; 
@property (nonatomic, retain) IBOutlet UIWindow *myWindow; 

@end 

I have each of these connect to the right view in rootviewcontroller.xib

I was wondering if anyone had any advice / snippets / examples I could use?

A: 

You need to use both the delegate file and Interface Builder. Interface Builder makes a view that binds to your delegate through IBOutlets and IBActions. I would run through several iPhone tutorials found on google before continuing.

Peter DeWeese
A: 

Your RootViewController certainly shouldn't be a subclass of UIWindow. You probably want UIViewController for that.

macserv