UIView에 UIAlertView가 있습니다. 로그인 오류가 발생하면 경고보기가 나타납니다.경고보기 위치가 가운데가 아닙니다.
때로는이 그림 다음의 중앙 위치에서 작동했습니다.
내 코드
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Login Failed" message:exceptionString delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
하지만 언젠가는이 그림 다음 왼쪽 위치에서 일했다.
나는 센터 위치에서만합니다.
문제를 해결하는 방법. 고맙습니다.
내가 같은 코드 ... UIAlertView * 경고 = [[UIAlertView ALLOC] initWithTitle를 사용하여 관련 코드 – codercat
를 게시 : nil]; [경고 표시]; –
alertView에 대한 프레임을 설정 했습니까? –