码迷,mamicode.com
首页 > 其他好文 > 详细

抽屉效果的实现

时间:2014-11-15 10:00:28      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   sp   文件   div   

 

效果图:

 

bubuko.com,布布扣

 

 

 

bubuko.com,布布扣

 

 

工程文件:

bubuko.com,布布扣

 

代码:

 

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title=@"抽屉效果的实现";
    
    UIView *uiview = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 380)];
    UIImage *image = [UIImage imageNamed:@"test.jpg"];
    UIImageView *imageView = [[UIImageView alloc]initWithImage:image];
    imageView.center = uiview.center;
    [uiview addSubview:imageView];

    
    DrawerView *testView = [[DrawerView alloc]initWithView:uiview parentView:self.view];
    
    [self.view addSubview:testView];

    
}

 

抽屉效果的实现

标签:style   blog   http   io   color   ar   sp   文件   div   

原文地址:http://www.cnblogs.com/yang-guang-girl/p/4098891.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!