控制器的创建方式:1.代码直接创建ZYViewController * Vc =
[[ZYViewController alloc] init];2.通过storyboard:UIStoryboard *storyboard =
[UIStoryboard storyboardWithName:.....
分类:
移动开发 时间:
2014-06-08 23:25:20
阅读次数:
249
要想深入ASP.NET页面编程,就必须了解页面生存周期各个阶段及相关事件。重写相关事件和方法可以使我们更好的控制页面呈现。#事件或方法功能描述1Init事件页面初始化页面生存周期中的第一个阶段是初始化。当Init事件发生时,在.aspx源文件中静态声明的所有控件都已实例化并取其默认值。应该注意的是,...
分类:
Web程序 时间:
2014-06-08 19:48:24
阅读次数:
248
spring关于“transactionAttributes”的相关配置
lazy-init="true" abstract="true">
PROPAGATION_REQUIRED,-Exception
PROPAGATION_REQUIRED,-Exception
PROPAGATION_REQUIRED,-Exception
PROPA...
分类:
编程语言 时间:
2014-06-08 15:36:32
阅读次数:
226
day01笔记
using namespace cocos2d; == USING_NS_CC; 一般用后面的
#ifndef __MYLAYER_H__
#define __MYLAYER_H__
---------------一般添加头文件添加宏
: public CCLayer 一般添加一个类继承CCLayer
CCLayer::init();
CCLab...
分类:
其他好文 时间:
2014-06-08 15:23:33
阅读次数:
191
设置字体出错:txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent"));
然后发现,竟然是因为自己没有加上后缀,改成下面这样就好了
txt.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/luculent.ttf"));
出这个错误了先看看名字...
分类:
编程语言 时间:
2014-06-08 15:03:27
阅读次数:
298
1
如果是自己手动调式蓝牙,首先将init.rc里面的dbus-daemon跟bluetoothd两个服务都自启动。也就是说将两个服务中有 disabled
的部分注释掉。因为disabled的话,它不会启动,而是会在设置里面点击启动时,才会触发服务启动。2 确保这两个服务已经启动bluetooth...
分类:
移动开发 时间:
2014-06-08 06:47:36
阅读次数:
266
NAMEg_thread_init- 初始化线程系统SYNOPSIS#include //in
gthread.h void g_thread_init (GThreadFunctions *vtable);Date Structuretypedef
struct _GThreadFunction....
分类:
其他好文 时间:
2014-06-08 00:39:36
阅读次数:
562
刚发现这个问题的时候太都头疼了,没有init怎么viewDidLoad呢??后来发现这是因为重载的原因,父类里面同样有initWithNibName方法,这样执行的顺序就是:initWithNibName(父类)->viewDidLoad(子类)->viewDidLoad(父类)->initWith...
分类:
其他好文 时间:
2014-06-07 22:47:29
阅读次数:
277
var myLayer = cc.Layer.extend({ init:function()
{//2 界面 var bRet = false; if (this._super()) { bRet = true; } ...
分类:
Web程序 时间:
2014-06-07 22:13:30
阅读次数:
324
#include#include#define LIST_INIT_SIZE
10/*线性表初始长度*/#define LIST_CREATENT 2/*每次的增量*/typedef int ElemType;using
namespace std;typedef struct SqList/*线性...
分类:
其他好文 时间:
2014-06-07 21:01:21
阅读次数:
322