XCODE5 新建工程TARGET默认版本从6.0开始

来源:互联网 发布:生辰八字起名软件下载 编辑:程序博客网 时间:2024/06/06 11:38

升级到 XCODE 5 后,新建的Single View工程 TARGET 默认版本最低只能设置到 6.0,为了改回5.0, 需要进入TARGET->Build Setting->Architectures->Architectures 切换到 Starndard Architectures(armv7,armv7s),然后再到 Deplopyment->iOS Deployment Target 里面就可以选择 5.0 了。

尽管这个改回来了,但是创建的工程含有 StoryBoard,还需要把这个删除。然后新建个 tableview 作为启动view,但是执行的时候遇到了错误:

unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard

比对以前的项目,原来时XCODE自动创建的代码使用了新函数,将下面红色部分删除,采用老函数,运行OK。

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:<#(NSIndexPath *)#>];


原创粉丝点击