Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)viewDidLoad {
- [super viewDidLoad];
- // Configure self's view
- self.view.backgroundColor = [UIColor blackColor];
- // Configure subviews
- UIImageView *imageView = [[UIImageView alloc]
- initWithFrame:self.view.bounds];
- RAC(imageView, image) = [RACObserve(self.photoModel, fullsizedData) map:^id(id value) {
- return [UIImage imageWithData:value];
- }];
- imageView.contentMode = UIViewContentModeScaleAspectFit;
- [self.view addSubview:imageView];
- self.imageView = imageView;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement