View with a nice iPhone container. Use it to display something within an iPhone graphic. Can be used for onboarding experiences. The view is strechable in the correct way so you can create an iPhone 4, iPhone 5 with a single view.
Add the following lines to your Podfile:
pod 'IVPhoneView', '~> 0.2'
IVPhoneView *phoneView = [[IVPhoneView alloc] initWithFrame:CGRectMake(80, 120, 160, 335)];
[phoneView setViewInPhone:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myScreenshot"]]];
phoneView.phoneColor = [UIColor whiteColor]; // For a white iPhone
IVPhoneView *landscapePhoneView = [[IVPhoneView alloc] initWithFrame:CGRectMake(-7, 30, 335, 160)];
landscapePhoneView.orientation = IVPhoneViewOrientationLandscape;
[landscapePhoneView setViewInPhone:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myScreenshot"]]];
You can set the color and the bezzel of the iPhone graphic. See the header file.
Copyright 2014 Label305 B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.