选择不适用于表格视图吗?

时间:2015-07-03 06:47:55

标签: objective-c arrays io

如果我有自定义单元格的表格视图。然后我想从选择的表格视图中选择不同的视图..那我怎么能这样做我的代码就在这里。

Private Sub btnEmail_Click(sender As Object, e As EventArgs) Handles btnEmail.Click
    email.From = New MailAddress("kuldip.mond123@gmail.com", "Kuldip Mond")
    email.Subject = "SAP Order Prerequisite Form"
    email.Body = "Message Text as Body of email."
    email.IsBodyHtml = True
    email.To.Add("kmond@mycompany.com")
    smtp.EnableSsl = True
    smtp.Port = 587
    smtp.Host = "smtp.gmail.com"
    smtp.UseDefaultCredentials = False
    smtp.Credentials = New Net.NetworkCredential("kmond@mycompany.com", "*********")
    smtp.Send(email)
    MsgBox("Email Sent")
End Sub

// 

 [CCTableView registerNib:[UINib nibWithNibName:@"CCCustomCell" bundle:nil] forCellReuseIdentifier:@"CellIdentifier"];
     [CCTableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];

    arraySuper=[NSMutableArray new];

     NSUserDefaults *userSave = [NSUserDefaults standardUserDefaults];

       NSArray *KeysArray=[NSArray arrayWithObjects:[NSString stringWithFormat:@"Welcome - %@",[userSave valueForKey:@"userID"]], nil];
      NSArray *objectArray=[NSArray arrayWithObjects:@"", nil];
        [self bindValues:KeysArray withObjects:objectArray];


       NSArray *KeysArray1=[NSArray arrayWithObjects:@"Case Status",@"Open Delivery Cases",@"Open Claim Cases",@"Feedback Awaiting",@"Completed Good",@"Completed bad", nil];
     NSArray *objectArray1=[NSArray arrayWithObjects:@"",openDelieveryCase,openClaimCase,@"0",completeGood,@"0", nil];
  [self bindValues:KeysArray1 withObjects:objectArray1];

    NSArray *KeysArray2=[NSArray arrayWithObjects:@"Today's Reminder",@"Case #123456 - Update Request by the insurer. Send Insurance Proof.1",@"Case #123456 - Update Request by the insurer. Send Insurance Proof.2",@"Case #123456 - Update Request by the insurer. Send Insurance Proof.3",@"Case #123456 - Update Request by the insurer. Send Insurance Proof.4", nil];
    NSArray *objectArray2=[NSArray arrayWithObjects:@"",@"",@"",@"",@"", nil];
[self bindValues:KeysArray2 withObjects:objectArray2];
}

-(void)bindValues:(NSArray*) KeysArray withObjects:(NSArray*)objectArray
 {
 NSMutableArray *arrayMain=[NSMutableArray new];

 for (int i=0;i<[KeysArray count];i++) {
    NSDictionary *dict=[NSDictionary dictionaryWithObject:[objectArray objectAtIndex:i] forKey:[KeysArray objectAtIndex:i]];
    [arrayMain addObject:dict];
}

[arraySuper addObject:arrayMain];
}

// 

 #pragma mark - Button Menu
 #pragma mark-

 -(void)buttonMenu:(UIButton *)button
{
 [self.menuContainerViewController toggleLeftSideMenuCompletion:nil];
}

1 个答案:

答案 0 :(得分:0)

你可以试试indexPath.section ==(你要用comapre的部分)