Solved

uiPickerview tap gesture no longer works in iOS 7

Posted on 2014-03-17
1
1,058 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Contact don't sync in iPhone when it's modified in MS Outlook 11 67
iPhone. Contacts icon not on home screen 3 91
iPhone excel activation issues 11 100
Info tab in iTune 9 26
     Intro      In this article, I will show you how to parse a JSON in Swift using an open source library called SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON). If you haven't heard of a JSON before, it stands for JavaScript Object Notation…
Learn new improvements released by Google for Google Calendar. Noted in this article are simple tips and tricks that can make your everyday use of Google Calendar better.
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.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

820 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