您的位置:首页 > 移动开发 > IOS开发

【代码笔记】iOS-旋转的风扇

2016-07-07 09:11 435 查看
一,效果图。



二,工程图。



三,代码。

AppDelegate.m

#import "AppDelegate.h"
//加入头文件
#import "RoundDiskViewController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.

RoundDiskViewController *roundViewController = [[RoundDiskViewController alloc] init];
[self.window addSubview:roundViewController.view];

self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: