iOS7 Tabbar icons too big

后端 未结 2 1172
不知归路
不知归路 2021-02-14 14:21

Seems I am having difficulty with something as simple as icons.

I am building an app for iOS7 only and thus, devices are retina displays (excluding iPad 2). So I made u

2条回答
  •  逝去的感伤
    2021-02-14 14:34

    Or you can do something like this:

    UIImage *image = [UIImage imageNamed:@"1.jpg"];
    
    [image drawInRect:CGRectMake(0, 0, 30, 30)];
    
    first.tabBarItem.image = image;
    

提交回复
热议问题