Vertical Scroll = TRUEMultiLine = TRUEHorizontal Scroll = FALSEAuto HScroll = FALSE可选设置Want Return = FALSE 可选设置Auto VScroll = TRUE
分类:
其他好文 时间:
2014-07-09 22:32:30
阅读次数:
309
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
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
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
相信大家都会认定微信是在手机上最火的应用程序了,几乎每个人的手机上都有安装它。微信除了功能非常强大之外,界面也是做得相当美观,它的ActionBar让人看着有一种赏心悦目的感觉。作为手机应用程序中的技术标杆,我们自然应该多多向微信学习,那么今天实战的主题,就是模仿微信主界面的实现。
首先新建一个Android项目,起名叫作WeChatSample。既然是要实现ActionBar,那么第一步当然就是编辑menu目录下的main.xml文件了,代码如下所示...
分类:
微信 时间:
2014-07-03 17:20:35
阅读次数:
487
在开发过程中遇到window.showModalDialog()打开的模态对话框需要从子窗口传递返回值给父窗口中的某个插件,开始想通过window.opener得到,但是试了几次得不到,后来发现原来在当前打开窗口(子窗口)中可以通过window.returnValue=指定返回值;window.close();之后父窗口可以使用v..