ActionSheet

UIActionSheet *actionSheet = [[UIActionSheet alloc]

                                      initWithTitle:@"選擇來源"

                                      delegate:self

                                      cancelButtonTitle:@"取消"

                                      destructiveButtonTitle:nil

                                      otherButtonTitles:@"從照片庫選擇",@"從相機選擇",nil];


    [actionSheet setDelegate:self];

    [actionSheet showInView:[UIApplication sharedApplication].keyWindow];

//        [actionSheet showInView:self.view];有tabbar最後一個按鈕就不靈了

        [actionSheet release];



UIActionSheetDelegate


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章