How can I create a custom popup window for iPhone?
问题 I want to create a custom popup window for iPhone which should look like this: What is the most correct way to implement this for iPhone and iPod devices? 回答1: The best way to do this is using a UIActionSheet. The code is here: UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Facebook",@"Twitter", nil]; [actionSheet showInView:self.view]; A UIActionSheet comes from the bottom to