拥有优美的 iPhone 容器的视图。用于在 iPhone 图形内显示内容。可用于引导体验。视图可以正确拉伸,因此您可以用单个视图创建 iPhone 4、iPhone 5。
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"]]];
您可以设置 iPhone 图形的颜色和边框。查看头文件。
版权所有 2014 Label305 B.V.
根据 Apache License,版本 2.0(“许可证”);除非符合许可证规定或书面同意,否则不得使用此文件。您可以在以下位置获得许可证副本:
https://apache.ac.cn/licenses/LICENSE-2.0
除非适用法律或书面同意,否则在许可证下分发的软件按“原样”基础分发,不提供任何明示或暗示的保证或条件。有关许可证的具体语言、许可权限和限制,请参阅许可证。