UIActionSheet not responding to touches

Posted by mongeta on Stack Overflow See other posts from Stack Overflow or by mongeta
Published on 2010-03-22T13:21:37Z Indexed on 2010/03/22 15:51 UTC
Read the original article Hit count: 767

Filed under:
|

Hello,

I can't touch any button in my UIActionSheet.

If I copy/paste this code in a new project, it works as expected.

  • I'm forcing the First Responder => doesn't work
  • I'm using [menu showFromTabBar:self.tabBarController.tabBar]; => doesn't work
  • I'm using [menu showInView:self.view.window]; => doesn't work

    UIActivityIndicatorView *progressView = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(150, 105, 25, 25)];
    progressView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
    
    
    UIActionSheet *menu = [[UIActionSheet alloc] initWithTitle:@"first_time_loading"
                                            delegate:self
    cancelButtonTitle:@"device_stop_info"
    destructiveButtonTitle:nil
    otherButtonTitles:nil];
    
    
    [menu addSubview:progressView];
    [menu setTag:9];
    [menu becomeFirstResponder];
    
    
    [menu showInView:self.view];
    //  
    [menu becomeFirstResponder];
    [menu setBounds:CGRectMake(0,0,320, 175)];
    [progressView startAnimating];
    [progressView hidesWhenStopped];
    
    
    [menu becomeFirstResponder];
    

    Don't know where to look for more ideas ...

    I'm opening from a UITableViewController in:

    - (void)viewDidAppear:(BOOL)animated { // doesn't work
    -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath // doesn't work
    

thanks,

r.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiactionsheet