Latest 0.2.1
Homepage https://github.com/Label305/IVPhoneView
License Apache License, Version 2.0
Platforms ios 7.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "IVPhoneView",
    "version": "0.2.1",
    "summary": "Basic view containing an iPhone graphic, in which you can place a screenshot. Can be used for onboarding experiences.",
    "description": "                   View with a nice iPhone container. Use it to display something within an iPhone graphic. Can be used for onboarding experiences.n                   Supports different dimensions, colors, and orientations.n",
    "homepage": "https://github.com/Label305/IVPhoneView",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Thijs Scheepers": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Label305/IVPhoneView.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "IVPhoneView/IVPhoneView.{h,m}"
}

Pin It on Pinterest

Share This