APPLE提供了三种storyboard segue的方式:push,modal,custom . push segue是系统预定义的跳转方式, 为了使其能正常工作,我们还必须加载UINavigationController。 有时候,我们不想看到UINavigation bar,我们可以使用m.....
分类:
移动开发 时间:
2014-08-01 13:04:11
阅读次数:
315
我们在定义一个drawable的时候可以通过xml定义的drawable对象。它使得一个图片能在不同的状态下显示不同的图案,比如一个 Button,它有pressed,focused,或者其它状态,通过使用state list drawable,你就可以为每种状态提供不同的图片。先看一个范例:XML...
分类:
移动开发 时间:
2014-08-01 13:00:21
阅读次数:
226
在 DragDrop 的时候,滚动 TreeView
当高度不够的时候
procedure TForm1.TreeView1DragOver(Sender, Source: TObject; X, Y: Integer;State: TDragState; var Accept: Boolean);...
分类:
其他好文 时间:
2014-08-01 12:47:01
阅读次数:
225
状态模式(State):当一个对象内在状态改变时,允许改变其行为,这个对象看起来像是改变了其类。
(1),状态模式主要负责解决的是当控制一个对象转换的条件表达式过于复杂时的情况。把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化。
(2),状态模式的好处是将与特定状态相关的行为局部化,并且将不同状态的行为分割开来。
(3),将特定的状态相关的行为都放入一个对象中...
分类:
编程语言 时间:
2014-07-31 23:58:20
阅读次数:
556
1.The use of state-observation transition functions rather than the separate transition and observation functions in HMMs allows us to model transitio...
分类:
其他好文 时间:
2014-07-31 20:43:27
阅读次数:
179
现在很多的Android程序都在标题栏上都显示了一些按钮和标题,这里尝试做个实例在onCreate中添加://自定义标题requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);setContentView(R.layout.main);//设置标题为某个l...
分类:
移动开发 时间:
2014-07-31 20:19:47
阅读次数:
208
Getting StartedThe above code inserts a rounded bootstrap edit text with the state set to be succesfull. The following attributes can be added:bootstr...
分类:
其他好文 时间:
2014-07-31 16:32:36
阅读次数:
393
~/.ssh/id_rsa权限问题,造成ssh无法登陆问题解决;使用virsh 连接exsi5.0;貌似这个在vm下再虚拟vm处问题,错误信息如下;Thu Jul 31 13:25:10 2014 [DiM][I]: New VM state is ACTIVE.Thu Jul 31 13:25:1...
分类:
其他好文 时间:
2014-07-31 16:14:16
阅读次数:
386
mkisofs -r -J -V Beini-Custom -v --boot-info-table --boot-load-size 4 -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o ../beini.iso beinisee...
分类:
系统相关 时间:
2014-07-31 12:59:06
阅读次数:
478
最近重新做了一下系统,在安装和使用svn过程中遇到了一些问题,记下备忘.第一次安装好系统之后,安装VisualSVN遇到报错:Custom action InstallWMISchemaExcute failed: Cannot query proxy blanket: No suchinterfa...
分类:
其他好文 时间:
2014-07-31 12:51:56
阅读次数:
216