往uiviewcontroller上面放一个 tableview代码如下
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10;
}-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *TableSampleIdentifier = @"TableSampleIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:
TableSampleIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:TableSampleIdentifier];
}
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
cell.textLabel.text = @"demo";
return cell;
}在iOS8上面一切正常,看到10个 demo字样,但是在iOS7上面却是白板一片然后尝试直接使用 tableviewcontroller,倒是都是有数据显示有谁知道这是为啥吗?
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 10;
}-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *TableSampleIdentifier = @"TableSampleIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:
TableSampleIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:TableSampleIdentifier];
}
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
cell.textLabel.text = @"demo";
return cell;
}在iOS8上面一切正常,看到10个 demo字样,但是在iOS7上面却是白板一片然后尝试直接使用 tableviewcontroller,倒是都是有数据显示有谁知道这是为啥吗?
解决方案 »
- 做个词典app 不知道词库怎么弄,求助啊
- iphone ipad专业开发群
- 關於日期問題的 求解答 求鞭撻 求滴蠟!!!!!!!!!
- 自定义的UITableViewCell 不能响应事件
- windows下有什么方法能对ipa安装文件进行重新签名,在PC上完成的
- ios引用ASIHttpRequest并启用支持ARC特性
- 如果Netty做服务器端, iOS做游戏客户端, 请问通信问题如何解决?
- 问一个有关蓝牙数据传送的
- 提问:两个应用间跳转,怎么写跳回之前的应用的方法
- ios UIdatepicker 改变字体大小
- 请教各位大侠,有没有iphone手机的模拟器,主要是能安装软件,能使用不同的型号,类似于安卓的bluestacks
- ios屏幕唤醒,进程通知
如果确认进入了无耻点,直接把你的tableview加到window上看看