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