pushview controller
hello everyone...
i jst want to show label on screen...with press of button..will u please help me in this code.it only black screen
- (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];
}
|