iOS 测试用代码

//测试图片能否显示
-(void)showMyimgview
{
    UIImageView   *backgroundImg=[[UIImageView alloc]init];
    backgroundImg.frame =CGRectMake(50, 200, 200, 100);
    backgroundImg.image=[UIImage imageNamed:@"navbar"];
    [self.view addSubview:backgroundImg];
    [backgroundImg release];
}

  

posted @ 2014-06-17 11:51  huluo666  阅读(458)  评论(0编辑  收藏  举报