iOS|iOS Tom-猫实现方法
#import "ViewController.h" @interface ViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *tom;
//tom图片 - (IBAction)eat;
//吃小鸟
- (IBAction)fart;
//放屁
- (IBAction)drink;
//和牛奶
- (IBAction)scratch;
//划玻璃
- (IBAction)pie;
//扔东西
- (IBAction)cymbal;
//敲锣 - (IBAction)knock;
//敲头
- (IBAction)left;
//左脚
- (IBAction)right;
//右脚 - (IBAction)Angry;
//生气
- (IBAction)Stomach;
//胃口
@end @implementation ViewController
-(BOOL)prefersStatusBarHidden
{
return YES;
}
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
} - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)initWithdonghua:(NSString *)name andcount:(int)cuont
{
if (self.tom.isAnimating) {
return;
}
NSMutableArray *arrM=[NSMutableArray array];
for (int i=0;
i
文章图片
屏幕快照 2016-03-05 05.59.04 PM.png
文章图片
屏幕快照 2016-03-05 06.04.59 PM.png
文章图片
屏幕快照 2016-03-05 06.05.53 PM.png
推荐阅读
- 2020-04-07vue中Axios的封装和API接口的管理
- iOS中的Block
- 如何更好的去学习
- 记录iOS生成分享图片的一些问题,根据UIView生成固定尺寸的分享图片
- 绘本讲师训练营【28期】15/21阅读原创《活了100万次的猫》
- 读猫文收获
- 2019-08-29|2019-08-29 iOS13适配那点事
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- iOS面试题--基础
- 如果我们的国宝不是熊猫