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