I've developed an app for iphone with an image view whose size is changed by the program.
This only works without auto layout.
When I change to universal device with autolayout the size of image view can not be changed programmatically.
Can anyone help?
ViewController.h:
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIImageView *firstImage;
@end
ViewController.m:
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
_firstImage.frame = CGRectMake(10,100,100, 12);
@end