@implementation app
@synthesize label;
@synthesize view1;
- (void)loadView {
UIView *view=[[[UIView alloc]initWithFrame:[[UIScreen mainScreen]bounds]]autorelease];
self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
UILabel *label =[[ [UILabel alloc ] initWithFrame:CGRectMake(50,100,0,200 )] autorelease];
label.text = @"manjot";
label.font = [UIFont fontWithName
"Zapfino" size: 14.0];
label.backgroundColor = [UIColor redColor];
[[self view] addSubview:label];
[[self navigationController] pushController:view animated:NO];
}
/*
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName
NSString *)nibNameOrNil bundle
NSBundle *)nibBundleOrNil {
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// Custom initialization
}
return self;
}
*/
- (void)viewDidLoad {
[super viewDidLoad];
}
it does nt show any error...but it also doent display any output...
@synthesize label;
@synthesize view1;
- (void)loadView {
UIView *view=[[[UIView alloc]initWithFrame:[[UIScreen mainScreen]bounds]]autorelease];
self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
UILabel *label =[[ [UILabel alloc ] initWithFrame:CGRectMake(50,100,0,200 )] autorelease];
label.text = @"manjot";
label.font = [UIFont fontWithName
label.backgroundColor = [UIColor redColor];
[[self view] addSubview:label];
[[self navigationController] pushController:view animated:NO];
}
/*
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// Custom initialization
}
return self;
}
*/
- (void)viewDidLoad {
[super viewDidLoad];
}
it does nt show any error...but it also doent display any output...