Skip to content
This repository has been archived by the owner on Nov 18, 2018. It is now read-only.

Label305/IVPhoneView

Repository files navigation

IVPhoneView Build Status

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.

screen shot 2014-08-05 at 14 56 31

CocoaPods

Add the following lines to your Podfile:

pod 'IVPhoneView', '~> 0.2'

Usage

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.

License

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.

About

Basic view containing an iPhone graphic in which you can place a screenshot. Can be used for onboarding experiences.

Resources

License

Stars

Watchers

Forks

Packages

No packages published