How to add a UIImageView of specific size programmatically in objective-c.
I also have a xib file for the same class but i donot want to use it
I have written following code in viewDidLoad method.
- (void)viewDidLoad {
[super viewDidLoad];
UIImageView *dot = [[UIImageView alloc] initWithFrame:CGRectMake(30,30,30,50)];
dot.image = [UIImage imageNamed:@"personal_info.png"];
[self.view addSubview:dot];
}