Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. -(void)viewDidLoad {
  2. [super viewDidLoad];
  3. // Configure self's view
  4. self.view.backgroundColor = [UIColor blackColor];
  5. // Configure subviews
  6. UIImageView *imageView = [[UIImageView alloc]
  7. initWithFrame:self.view.bounds];
  8. RAC(imageView, image) = [RACObserve(self.photoModel, fullsizedData) map:^id(id value) {
  9. return [UIImage imageWithData:value];
  10. }];
  11. imageView.contentMode = UIViewContentModeScaleAspectFit;
  12. [self.view addSubview:imageView];
  13. self.imageView = imageView;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement