-1
저는 Objective C에서 매우 새로워졌으며 현재 프로젝트를 진행 중입니다. Tableview의 각 셀에 대한 컨트롤러보기
I've created a Slide-Out-Menu, which is based on my own Database
지금 나는의 ViewController 각 셀에서 푸시 Seque을 얻으려고하지만, 이것이 어떻게 작동하는지 난 정말 생각을하지 않았습니다.여기
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1; }
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
NSArray *numarray = [self getServerConnection];
for (NSDictionary *diction in numarray) {
NSDictionary *menuID = [diction objectForKey:@"id"];
NSString *num = [NSString stringWithFormat:@"%@",menuID];
intnum = [num intValue];
}
return intnum; }
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
NSArray *namearray = [self getServerConnection];
for (NSDictionary *diction in namearray) {
name = [result valueForKey:@"name"];
identifier = [menuArray valueForKey:@"identifier"];
cell.textLabel.text = name [indexPath.row];
}
return cell; }
안녕하세요. 문제에 대한 설명, 이해할 수없는 코드 또는 동영상 링크 이외의 것을 제공해야합니다. – DominicanCoder