UIAlertView with textfield and three buttons issue in ios 6

后端 未结 4 1672
旧巷少年郎
旧巷少年郎 2020-12-17 05:45
     UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@\"Enter Student Name\"        message:nil delegate:self cancelButtonTitle:@\"Cancel\" otherButtonTitles         


        
4条回答
  •  無奈伤痛
    2020-12-17 06:32

    What you are doing wrong is you're trying to customize UIAlertView and put subviews into it. Apple generally dislikes and prohibits this approach. What you can try to do is the following:

    1. You can try custom alert-view 'replication' like this one

    2. Write your own 'replication' of alert-view that will fit your needs and work the same on both iOS6/7.

提交回复
热议问题