单击视图时,学生姓名随机出现在视图上,再次点击随机停止#import <UIKit/UIKit.h>
@interface MainViewController : UIViewController
@property (nonatomic, assign)NSInteger click;
@property (nonatomic, retain)NSTimer *timer;
@interface MainViewController : UIViewController
@property (nonatomic, assign)NSInteger click;
@property (nonatomic, retain)NSTimer *timer;
@end
#import "MainViewController.h"
#import "NewTimer.h"
@interface MainViewController ()
@end
@implementation MainViewController
- (void)viewDidLoad {
[super viewDidLoad];
_click = 1;
self.view.backgroundColor = [UIColor whiteColor];
UILabel *label= [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
label.tag = 1;
label.font = [UIFont systemFontOfSize:100];
label.textColor = [UIColor blackColor];
label.t