#import "ZXHAppDelegate.h"
<span style="font-size:18px;">@implementation ZXHAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
/*
NSArray *arr = [NSArray arrayWithObjects:[UIColor redColor],[UIColor orangeColor],
[UIColor yellowColor],
[UIColor greenColor],[UIColor cyanColor],[UIColor blueColor],
[UIColor purpleColor], nil];
for (NSInteger i = 0; i < 7; i ++) {
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0 + i * 20, 0 + i *20,
320 - 40 * i , 568 - i * 40)];
view.backgroundColor = arr[random()%6];
[self.window addSubview:view];
[view release];
}
*/
//红色视图
UIView *redView=
iOS 霓虹灯效果(同种颜色依次向外扩展)
最新推荐文章于 2020-12-20 06:06:31 发布