웹 서비스로 동기화 될 수있는 데이터가있는 경우 내 iPhone 앱의 초기보기가로드되는 즉시 UIActionSheet가 표시됩니다. 문제는 UIActionSheet가 너무 높게 튀어 나오고 있다는 것입니다. 정확히 탭 바의 절반이 작업 시트 아래에 노출되어 있습니다. 나는 이것이 스타일에 기인한다는 것을 모르고 있습니까? 누구도 이런 일이 일어나지 않도록 설명/해결책을 제시 할 수 있습니까? 어떤 제안에 미리UIActionView가 잘못 표시됩니다.
덕분에, 내 코드는 showInView:
전화를 들어
- (void)viewDidLoad {
//...preset a few values here, unrelated to the view...
//...
// Add an actionsheet to prompt for a DB sync
if ([myDatabase isSyncPossible] == true) {
UIActionSheet *actionsheet = [[UIActionSheet alloc]
initWithTitle: @"You have information that hasn't been uploaded, would you like to sync now?"
delegate: self
cancelButtonTitle: @"No thanks, maybe later"
destructiveButtonTitle: @"Yes, upload now"
otherButtonTitles: nil];
actionsheet.tag = 2;
[actionsheet showInView:self.view];
[actionsheet release];
}
}
답장을 보내 주셔서 감사합니다. 보기 크기가 실제로 잘못되었지만 인터페이스에서 이것이 분명하지 않은 이유를 모르지만 문제를 해결하면 실제로 문제가 해결되었습니다. 매우 감사합니다! – Purpletoucan