基于iOS的APP“好妈妈”开发日志五
1.在本地搭建leancloud+nodejs+express服务端
npm install 的时候出现漏洞和警告
解决办法如下:
2.TableView中datesource的链接问题
问题如下⤵️
tableView:numberOfRowsInSection:]: unrecognized selector sent to instance
解决办法:
1.先检查链接是否在相应的View Controller上
2.再检查,对应的类是否缺少继承
3.再检查是否实现 tableview的数据源代理方法
实现方法如下:
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = self.tbView.dequeueReusableCell(withIdentifier: "cell", for: indexPath as IndexPath)//cell为之前设置的cell控件的id
return cell
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete implementation, return the number of rows
return 5//返回行数
}
3.在部署leancloud时遇到部署不成功的问题
无法判断项目类型,请根据官方代码示例创建项目
问题尚未解决,但更新了github的公共秘钥
由于老秘钥过期,导致不能push即
git push -u origin master
根据https://blog.csdn.net/u013894429/article/details/78960813文章内容进行了秘钥的重新修改
努力奋斗!?luhh~~