UIViewController

Discussion in 'iPhone/iPad Programming' started by manjot01synergy, Aug 9, 2010.

  1. macrumors newbie

    Joined:
    Aug 4, 2010
    #1
    @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...
     

Share This Page