转自廖雪峰在iOS开发中,如果使用UINavigationController,配合Storyboard+Push模式的Segue,默认情况下,可以直接实现左右推出的View切换效果。但是,如果不使用UINavigationController时,把Segue设置为Push,运行就会直接报错,而Model模式的Segue只有Cover Vertical,Flip Horizontal,Cross D...
分类:
移动开发 时间:
2015-03-11 10:57:54
阅读次数:
174
转自廖雪峰在iOS开发中,如果使用UINavigationController,配合Storyboard+Push模式的Segue,默认情况下,可以直接实现左右推出的View切换效果。但是,如果不使用UINavigationController时,把Segue设置为Push,运行就会直接报错,而Model模式的Segue只有Cover Vertical,Flip Horizontal,Cross D...
分类:
移动开发 时间:
2015-03-11 10:57:03
阅读次数:
156
首先要分两种不同情况,在两种不同的布局方式下:LinearLayout 和RelativeLayout1. LinearLayouta). android:layout_gravity="center_horizontal"表示该布局在父布局里水平居中,此时其父布局必须拥有android:orien...
分类:
移动开发 时间:
2015-03-11 10:42:04
阅读次数:
172
Python图像处理库:PIL中Image,ImageDraw等基本模块介绍常用操作合成Image.blend(i1,i2,a)/Image.composite(i1,i2,mask)缩略图thumbnail(size,filter=None)Modifiesin-place,Preservesaspectratio>>>myImage.thumbnail((128,128),Image.ANTIALIAS)剪切crop(bbox)>&..
分类:
编程语言 时间:
2015-03-10 19:33:33
阅读次数:
311
ScrollView+GridLayoutGroup滑动列表,与NGUI类似ScrollView上所需组件:ScrollRect+Mask+Image。ScrollRect指定滑动的目标Rect Transform,并指定滑动方向horizontal或vertical,指定滑动条并进行一些参数的设置...
分类:
其他好文 时间:
2015-03-10 01:23:15
阅读次数:
254
出现下边的问题解决方法:
整的错误提示信息为:No orientation specified, and the default is horizontal. This is a common source of bugs when
children are added dynamically.
通常发生这个错误提示的原因是我们直接在原有的页面上...
分类:
其他好文 时间:
2015-03-04 17:05:34
阅读次数:
130
On a horizontal line, there are two vertical pillars. The distance between their bottoms is w. The height of the first pillar is an integer, chosen uniformly at random in the range 1 through x, inclusive. The h...
分类:
其他好文 时间:
2015-03-04 06:16:07
阅读次数:
157
Create a Linear Layout(创建一个线性布局)注释:android:orientation="vertical"水平线性布局,"horizontal"垂直水平线性 match_parent:This value declares that the view should expan...
分类:
其他好文 时间:
2015-03-03 20:11:56
阅读次数:
131
// Wrapping to fit horizontal and vertical size. Text will be wrapped and truncated using the NSLineBreakMode. If the height is less than a line of te...
分类:
其他好文 时间:
2015-02-27 14:58:27
阅读次数:
111
作者的GITHUB:https://github.com/mrlong/bootstrap3-validation.js,先感谢一下,很好用~
作者的样式,当表单有类为:form-horizontal 时,必填项*号显示样式很奇怪~~
作者垂直表单添加 * 源码如下:
else if(fform_style==2){
$(obj)....
分类:
Web程序 时间:
2015-02-27 10:14:17
阅读次数:
221