解决方案 »

  1.   


      
        self.authTable = [[UITableView alloc]initWithFrame:tableRect style:UITableViewStyleGrouped];
        self.authTable.delegate = self;
        self.authTable.dataSource = self;
        self.authTable.clipsToBounds = NO;
        [self.view addSubview:self.authTable];- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
        
        
        if(indexPath.section==0){
            //修改照片
            UIImagePickerController * picker = [[UIImagePickerController alloc]init];
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            picker.delegate = self;
            [self presentModalViewController:picker animated:YES];
        }
        
    .......
      

  2.   


      
        self.authTable = [[UITableView alloc]initWithFrame:tableRect style:UITableViewStyleGrouped];
        self.authTable.delegate = self;
        self.authTable.dataSource = self;
        self.authTable.clipsToBounds = NO;
        [self.view addSubview:self.authTable];- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
        
        
        if(indexPath.section==0){
            //修改照片
            UIImagePickerController * picker = [[UIImagePickerController alloc]init];
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            picker.delegate = self;
            [self presentModalViewController:picker animated:YES];
        }
        
    .......

    这样看是没问题的,是不是你的点击事件被其他视图消耗掉了?
      

  3.   

    应该是手势冲突,你把表格选中代理方法中的:
      if(indexPath.section==0){
            //修改照片
            UIImagePickerController * picker = [[UIImagePickerController alloc]init];
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            picker.delegate = self;
            [self presentModalViewController:picker animated:YES];
        }
    把这段代码注释掉,再试试,看能不能调进去
      

  4.   


      
        self.authTable = [[UITableView alloc]initWithFrame:tableRect style:UITableViewStyleGrouped];
        self.authTable.delegate = self;
        self.authTable.dataSource = self;
        self.authTable.clipsToBounds = NO;
        [self.view addSubview:self.authTable];- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
        
        
        if(indexPath.section==0){
            //修改照片
            UIImagePickerController * picker = [[UIImagePickerController alloc]init];
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            picker.delegate = self;
            [self presentModalViewController:picker animated:YES];
        }
        
    .......

    这样看是没问题的,是不是你的点击事件被其他视图消耗掉了?嗯,谢谢,解决了,是下层页面的单击手势拦截了UItableview的didSelect事件,