1 / 9

How to use UIImageView

How to use UIImageView. 1 What’s the ImageView? 2 Use initWithImage to create As Background: UIImageView *object name=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@”picture name”]]; self.view=object name;. How to use UIImageView. 3 Use initWithFrame to create:

Download Presentation

How to use UIImageView

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to use UIImageView 1 What’s the ImageView? 2 Use initWithImage to create As Background: UIImageView *object name=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@”picture name”]]; self.view=object name;

  2. How to use UIImageView 3 Use initWithFrame to create: UIImageView *object name=[[UIImageView alloc]initWithFrame:CGRectMake(80,150,150,200)]; object name.image=[UIImage imageNamed:@”picture name”]]; [self.view addSubView:object name];

  3. How to use UIImageView 4 Use Center to create: object name.center=CGPointMake(CGFloat X,CGFloate Y);

  4. How to use UIImageView 5 Use tranform to create: object name.tranform=CGAffineTransform MakeTranslation(CGFloat tx,CGFloate ty);

  5. How to use UIImageView 6 Use tranform to create: object name.tranform=CGAffineTransform MakeRotation(CGFloat angle);

  6. How to use UIWebView 1 What’s the WebView? 2 Syntax format: UIWebView *object name=[[UIWebView alloc]initWithFrame:CGRectMake(10,10,300,300)]; [self.view addSubView:object name]

  7. How to load WebPage 1 Link URL NSURL *objectName1=[NSURL URLWithString:(NSString)]; 2 Transform URL NSURLRequest *objectName2=[NSURLRequest requestWithURL:(NSURL)];

  8. How to load WebPage 3 Load URL [objectName1 loadRequest:objectName2];

  9. Any question?

More Related