Note that there are some explanatory texts on larger screens.

plurals
  1. POHandling click events inside ABPersonViewController; not responding to clicks
    primarykey
    data
    text
    <p>am using this function in my program for displaying contacts in my program. But when i click on the fields in the abpersonview nothing happens. </p> <pre><code>- (BOOL)personViewController:(ABPersonViewController *) personViewControllershouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier { NSLog(@"IN"); return YES; } </code></pre> <p>My class has an object of AbPersonView ,below is my class definition</p> <pre><code> #import &lt;UIKit/UIKit.h&gt; #import &lt;CoreFoundation/CoreFoundation.h&gt; #import&lt;AddressBookUI/AddressBookUI.h&gt; @interface ContactTable : UIViewController&lt;UITableViewDataSource,UISearchBarDelegate,UITableViewDelegate,ABNewPersonViewControllerDelegate,UIAlertViewDelegate,ABPersonViewControllerDelegate&gt; @property CFMutableArrayRef filteredData; @property CFArrayRef contactAdd; @property ABRecordRef person; @property ABAddressBookRef addressBook; @property ABPersonViewController *currentPersonView; @property (weak, nonatomic) IBOutlet UISearchBar *contactSearchBar; @property (weak, nonatomic) IBOutlet UITableView *contactTableView; @end </code></pre> <p>and i am using this Currentpersonview as </p> <pre><code> self.currentPersonView=[[ABPersonViewController alloc]initWithNibName:@"ContactTable.h" bundle:nil]; if(isFiltered) self.person=CFArrayGetValueAtIndex(self.filteredData,indexPath.row); else { NSLog(@"%ld index:%d", CFArrayGetCount(self.contactAdd),indexPath.row); self.person=(ABRecordRef)CFArrayGetValueAtIndex(self.contactAdd,indexPath.row); } self.currentPersonView.displayedPerson=&amp;(*self.person); self.currentPersonView.allowsEditing=YES; self.currentPersonView.allowsActions=YES; [self.navigationController pushViewController:self.currentPersonView animated:YES]; </code></pre> <p>But i cant get any respose on the function when i click on the ABPersonView.....</p> <p>What might be the problem??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload