01 2017 档案

摘要:解决办法: 只需加上协议,即可识别. 阅读全文
posted @ 2017-01-23 23:19 Accepted.DXY 阅读(204) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-01-17 08:56 Accepted.DXY 阅读(110) 评论(0) 推荐(0)
摘要:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 个人的大体思路: 先判断是整数还是负数,flag记录符号(-1或1),把数字取绝对值然后转换成字符串,字符串逆序,把字 阅读全文
posted @ 2017-01-17 00:39 Accepted.DXY 阅读(330) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-01-17 00:12 Accepted.DXY 阅读(261) 评论(0) 推荐(0)
摘要:情况一:地理编码 storyboard: 代码如下(项目并未导入MapKit框架,但运行程序并不崩溃): 情况二:添加地图View storyboard: 代码(项目没有导入框架,但程序崩溃): 程序崩溃报错: *** Terminating app due to uncaught exceptio 阅读全文
posted @ 2017-01-15 23:52 Accepted.DXY 阅读(320) 评论(0) 推荐(0)
摘要:仿写项目的时候,出现了一个Bug:点击右边的"编辑","编辑"变为"完成",左侧出现"全选","删除"等按钮,再点击"完成",本应该把左侧出现的按钮都隐藏掉,并把"完成"再次改为"编辑",但是左侧的按钮并没有隐藏掉. 正确的需求应该如下图所示: 出现Bug的效果图: 有Bug的核心代码部分如下: 一 阅读全文
posted @ 2017-01-02 23:58 Accepted.DXY 阅读(3315) 评论(0) 推荐(0)