Edu*_*rdo 5 iphone objective-c storyboard uitableview ios
我UITableView
在我的故事板中创建了一个静态,但是当我在我的模拟器中运行它时它没有显示出来。是否有某种设置我可能已经打开以使其不可见?
请注意,这是在故事板中 100% 创建的,因此没有可显示的代码。
小智 4
如果您使用静态表视图但有 TableViewControler,请确保
/*
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
and most importantly.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
*/
Run Code Online (Sandbox Code Playgroud)
在你的 tableViewController 类中被注释掉。
希望这可以帮助。
归档时间: |
|
查看次数: |
1355 次 |
最近记录: |