Guest User

Untitled

a guest
Jan 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 88)];
  2. UIImage *img = [UIImage imageNamed:@"top_bar.png"];
  3. [imgView setImage:img];
  4. [self.view addSubview:imgView];
  5.  
  6. UIButton *navigationButton = [UIButton buttonWithType:UIButtonTypeCustom];
  7. [navigationButton setImage: [UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
  8. [navigationButton addTarget:view action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  9. navigationButton.frame = CGRectMake(-2, 23, 75, 55);
  10. [self.view addSubview:navigationButton];
  11.  
  12. If your user interface is complex or less than very good, it may be rejected
Add Comment
Please, Sign In to add comment