美文网首页
IOS7 关于UIButton setImage setBack

IOS7 关于UIButton setImage setBack

作者: 红线路亚湾 | 来源:发表于2016-06-22 15:49 被阅读0次

    高于IOS7的场合

    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(5, 100,30, 30)];
    [btn setImage:[UIImage imageNamed:@"logo"] forState:UIControlStateNormal];
    

    IOS7的场合

    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(5, 100,30, 30)];
    [btn setImage:[UIImage imageNamed:@"logo.png"] forState:UIControlStateNormal];
    

    相关文章

      网友评论

          本文标题:IOS7 关于UIButton setImage setBack

          本文链接:https://www.haomeiwen.com/subject/grogdttx.html