Solved

uiPickerview tap gesture no longer works in iOS 7

Posted on 2014-03-17
1
1,079 Views
Last Modified: 2014-04-09
Here is my code:

-(IBAction)txtInd:(id)sender{
    inProjectField=NO;
    inIndField=YES;
    inTaskField=NO;
    pvProjects.hidden=YES;
    curInd = @"";
    txtInd.text=@"";
    [TaskArray removeAllObjects];
    txtTask.enabled=NO;

    UIPickerView *picker = [[UIPickerView alloc]
                            initWithFrame:CGRectMake(-45, 290, 410, 270)];
    picker.delegate = self;
   
    myGR = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(indirectTap:)];
   
   
    [myGR setNumberOfTapsRequired:1];
    [myGR setNumberOfTouchesRequired:1];
    [picker addGestureRecognizer:myGR];
   
   
   
    picker.backgroundColor = [UIColor lightGrayColor];
   
    picker.transform= CGAffineTransformMakeScale(.7f, .7f);
    [picker selectRow:0 inComponent:0 animated:YES];
    picker.showsSelectionIndicator=YES;
    picker.userInteractionEnabled=YES;
   
   [self.view addSubview:picker];
    pvProjects = picker;
    [pvProjects release];
   
}

Never makes it here:
-(void)indirectTap:(id)sender{

    pvProjects.hidden=YES;
    lblBidHrs.text=@"";
    lblActualHrs.text=@"";
    [TaskArray removeAllObjects];
    txtTask.backgroundColor= [UIColor whiteColor];
    if ([curInd isEqualToString:@"-none-"]){
        txtInd.text = @"";}
    else{
        txtInd.text = curInd;
        txtProject.text = @"";
        txtTask.text =  @"";
    }
    [self playTone];
     [self.view endEditing:YES];
}

Worked fine up until the 7.1 update?
0
Comment
Question by:thenrich
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
darbid73 earned 500 total points
ID: 39977351
have you stepped through your code to see where it errors?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question