Tutorial by Examples

import #include <math.h> The code in the viewDidLoad or loadView should look something look something like this - (void)loadView { [super loadView]; UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 50, 320, 320)]; [self.view addSubview:imageView]; UIImage *image=[U...
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. let imageView = UIImageView(frame: CGRect(x: CGFloat(0), y: CGFloat(50), width: CGFloat(320), height: CGFloat(320))) view.addSubview(imageVi...

Page 1 of 1