0
질문이 있습니다 : 어떻게 UITableView를 동적으로 초기화 할 수 있습니까?UITableView를 동적으로 초기화하십시오.
사실 저는 3 개의 라벨과 1 개의 체크 박스가있는 쿠스토 셀을 가지고 있습니다. 내 tableView에는 두 개의 섹션이 있습니다.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 5;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 2;
}
을하지만 체크하면 눈에 보이는 세포에 체크 박스, 나도 확인됩니다 이동하면 나타납니다,하지만 난 싶지 않아 다음 확인란 : 그냥 테스트를 위해, 나는 수동으로 넣어!
그리고이 같은 3 개 레이블 클래스와 확인란하고 싶습니다 :
#import <Foundation/Foundation.h>
@interface MyClass : NSObject
@property(strong, nonatomic) NSString *label1;
@property(strong, nonatomic) NSString *label2;
@property(strong, nonatomic) NSString *label3;
@property(assign) BOOL *checked;
@end
을하고 (이 클래스의 객체와 배열)이 클래스를 사용하여 내 jQuery과 동적으로 초기화하지만 난하지 않습니다 이것을하는 방법을 아십시오.
도움 주셔서 감사합니다. : D
안부,