小项目设计
文章平均质量分 87
刘亭均
欢迎大家交流沟通
展开
-
iOS 自制汤姆猫
效果图如下:#import "twoViewController.h"@interface twoViewController (){ UIImageView *imageView; UIImageView *animationView_stomach; NSMutableArray *imageList_stomach;原创 2015-10-06 16:00:53 · 523 阅读 · 0 评论 -
iOS开发之 简易随机点名册的设计
效果图如下:先看看定义的全局变量:{ NSMutableArray *arrName;// 后台所用名字的数组 UILabel *label ;// 显示抽到的名字的label NSTimer *timer;// 在点击开始按钮后,定时器开始运行 UIButton *button;// 开始的按钮}具体代码如下: //原创 2015-10-06 16:15:01 · 685 阅读 · 0 评论 -
iOS开发之简易时钟的制作
效果图如下:在这上面的时间是会自己走动的,下面我们来看看它是怎么实现的首先,我们得先准备两张图片,如下1、定义三个展示时分秒的全局变量,方便使用{ CALayer *sLayer; CALayer *mLayer; CALayer *hLayer;}2、将表盘那张image 附在self.view上原创 2015-09-16 14:34:42 · 1511 阅读 · 1 评论 -
iOS开发小项目之找色块游戏
效果图如下:核心代码如下:TwoViewController.m中#import "TwoViewController.h"#import "ThereViewController.h"@interface TwoViewController (){ NSMutableArray *colorlist; int a; UILabel *原创 2015-10-06 16:40:53 · 623 阅读 · 0 评论