Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

manjot01synergy

macrumors newbie
Original poster
Aug 4, 2010
4
0
@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:mad:"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...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.