Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-07-09 23:00:38
阅读次数:
208
iOS7之后. 默认的返回按钮字体颜色是蓝色的, 显示内如是父VC(上一级界面)的title如果要做修改, 可以通过下面的办法:1. 修改字体颜色(1) 在plist里面, 加上View controller-based status bar appearance, 并且设置为NO(2) 在需要修改的那个界面. 加入如下代码(加在viewDIdLoad即可) self.navigationC...
分类:
移动开发 时间:
2014-07-08 13:54:47
阅读次数:
239
jedis是java的redis客户端实现,要使用jedis需要添加jedis的maven依赖:
redis.clients
jedis
2.4.2
redis最简单的使用:Jedis jedis = new Jedis("localhost");//使用redis默认端口6379
jedis.set("foo", "bar");
String value = jedis...
分类:
编程语言 时间:
2014-07-08 12:48:51
阅读次数:
308
UITextView in iOS7 has been really weird. As you type and are entering the last line of your UITextView, the scroll view doesn't scroll to the bottom like it should and it causes the text to be "clipp...
分类:
移动开发 时间:
2014-07-08 11:14:15
阅读次数:
225
今天在测试过程中,出现了这样一个bug,分别有两种情景:
(前提是:app是基于UINavigationController构建的)
1、从Controller-A中push进来B。在B中点击返回,返回的界面为黑色一片。再做返回操作就crash了。
2、从Controller-A中push进入B,此时B中tableview出现错位现象,tableview被navigationbar覆盖了...
分类:
其他好文 时间:
2014-07-08 10:33:48
阅读次数:
218
bootstrap-popover的配置与灵活应用首先罗列一下配置参数:1、animation true/false 是否动画2、placement 'right'/'left'/top/bottom/function(){return 'right'} 弹出提示的位置3、selector 目标对象...
分类:
其他好文 时间:
2014-07-08 00:28:12
阅读次数:
541
2014-07-05 17:11:20.594 SevenStars[2185:60b] nested push animation can result in corrupted navigation bar
2014-07-05 17:11:21.005 SevenStars[2185:60b] Finishing up a navigation transition in an unexp...
分类:
其他好文 时间:
2014-07-06 12:31:20
阅读次数:
198
技术人员关注的问题非常多,但常见的至少有以下6种。特此整理,抓住核心问题,解决它。一个人的精力和时间往往非常有限,能把核心问题都解决到位就是成功。" style="margin-top: 0px; margin-bottom: 1em; word-wrap: break-word; color: rgb(34, 34, 34); font-family: 'Roboto Condensed', T...
分类:
其他好文 时间:
2014-07-06 00:28:52
阅读次数:
312
iOS7 中的UIViewControllers设置了automaticallyAdjustsScrollViewInsets。如果是YES,scrollview会根据status bar, navigation bar以及tool bar或者tab bar的高度自动调整。可以通过在storyboard的右侧进行设置,在Attributes Inspector中,不勾选“Adjust Scroll...
分类:
移动开发 时间:
2014-07-04 08:00:39
阅读次数:
539
如果出现:
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
一般这种情况是在自定义的t...
分类:
其他好文 时间:
2014-07-04 00:36:55
阅读次数:
223