#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
}
-(void)createUI
{
//创建拼图背景
UIView* backView=[[UIView alloc]initWithFrame:CGRectMake(10, 60, 300, 300)];
backView.backgroundColor=[UIColor whiteColor];
backView.tag=100;
[self.view addSubview:backView];
//创建提示图片
UIImageView* imageView=[[UIImageView alloc]initWithFrame:CGRectMake(100, 380, 80, 80)];
UIImage* image1=[UIImage imageNamed:@"king2.png"];
简易拼图(OC)
最新推荐文章于 2022-06-27 17:25:01 发布