我在UIView中有UIAlertView。當出現關於登錄的錯誤時,將出現警報視圖。警報查看位置不是中心
有時它在中心位置在這張照片後面工作。
我的代碼
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Login Failed" message:exceptionString delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
但有時它這張照片下面的工作對左側位置。
我想只有中心的地位。
如何解決它。謝謝。
發表您的相關代碼 – codercat
我用同樣的代碼... UIAlertView中*警報= [[UIAlertView中頁頭] initWithTitle:@ 「登錄失敗」 消息:exceptionString代表:無cancelButtonTitle:@ 「OK」 otherButtonTitles :無]; [alert show]; –
您是否爲alertView設置了任何框架? –