May 8th, 2013, 10:46 AM
Join Date: May 2013
Time spent in forums: 22 m 38 sec
Reputation Power: 0
Any Ios/ Xcode Whizz Kids There..
Yep , pretty new to XCODE , but learning quick..this is really stumping me though.
I have passed an image from one VC to another but in the second VC it wont size to the size of the IPHONE..yet in the first VC the image resizes ok.
Here is some codey stuff
first VC m file
ViewController *vc2 =[self.storyboard instantiateViewControllerWithIdentifier:@"Viewcontroller2"];
vc2.imagetopass = self.backgroundimage; ...this bit
[self presentViewController:vc2 animated:NO completion:nil];
in second VC m file
background = imagetopass;
[self.view addSubview :background ];
I have already setup background , property and synthesized and linked it to the second VC
The image passes ok , but wont resize...any thoughts