我正在爲視網膜和非視網膜顯示創建寬度爲30的像素大小按鈕圖像。 它看起來不錯。我在stackoverflow中讀到,視網膜的像素要求至少爲40x40,看起來太大了。像素大小爲30是否會導致應用拒絕?UIButton的像素大小要求
UIButton *btnBack = [UIButton buttonWithType:UIButtonTypeCustom];
[btnBack setImage:backImage forState:UIControlStateNormal];
btnBack.frame = CGRectMake(0, 0, backImage.size.width, backImage.size.height);
[btnBack addTarget:self action:@selector(Click_On_Btn_Back) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *backBarItem = [[UIBarButtonItem alloc] initWithCustomView:btnBack];
self.navigationItem.leftBarButtonItem = backBarItem;
[btnFollow setImage:followImage forState:UIControlStateNormal];
btnFollow.frame=CGRectMake(followBtnXOffset,currentHeight+followBtnYOffset,followImage.size.width,followImage.size.height);
我認爲只是一個指導路線/建議。就蘋果而言,你可以把它做成1x1。 – Adrian