01 2017 档案
摘要:解决办法: 只需加上协议,即可识别.
阅读全文
摘要:Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you
阅读全文
摘要:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 个人的大体思路: 先判断是整数还是负数,flag记录符号(-1或1),把数字取绝对值然后转换成字符串,字符串逆序,把字
阅读全文
摘要:Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will only contain 0 and 1. The length
阅读全文
摘要:情况一:地理编码 storyboard: 代码如下(项目并未导入MapKit框架,但运行程序并不崩溃): 情况二:添加地图View storyboard: 代码(项目没有导入框架,但程序崩溃): 程序崩溃报错: *** Terminating app due to uncaught exceptio
阅读全文
摘要:仿写项目的时候,出现了一个Bug:点击右边的"编辑","编辑"变为"完成",左侧出现"全选","删除"等按钮,再点击"完成",本应该把左侧出现的按钮都隐藏掉,并把"完成"再次改为"编辑",但是左侧的按钮并没有隐藏掉. 正确的需求应该如下图所示: 出现Bug的效果图: 有Bug的核心代码部分如下: 一
阅读全文