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

时间:2021-08-17 12:27:02

一,效果图。

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

二,工程图。

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

三,代码。

AppDelegate.m

【代码笔记】iOS-旋转的风扇
#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;
}
【代码笔记】iOS-旋转的风扇