-1
私はObjective Cの新機能で、現在はプロジェクトに取り組んでいます。Tableviewの各セルのコントローラを表示
I've created a Slide-Out-Menu, which is based on my own Database
今私はプッシュSeque、各セルからのViewControllerのを取得しようとしているが、私は実際にこれがどのように機能するかのアイデアを持っていません。
はここ
- (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