ios8 alertview 텍스트 정렬 문제

2014. 10. 10. 16:54Scrapbook/개발 및 프로그래밍

반응형

iOS8 이전 버전에서 정상이던 AlertView가 iOS8 에서 텍스트가 상단으로 붙어보이는  문제 발생.

아래와 같이 간단히 해결. ^^



    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil message:@"테스트입니다." delegate: nilcancelButtonTitle:@"확인" otherButtonTitles:nil];

    [alertView show];


-->


    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"" message:@"테스트입니다." delegate: nilcancelButtonTitle:@"확인" otherButtonTitles:nil];

    [alertView show];

반응형