public class TeacherInfoActivity extends Activity { TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedI....
不能在onCreate函数中获取控件,以为fragment还没有start,你可以在onStart函数中获取:@Overrideprotected void onStart() { super.onStart(); View view = this.findViewById(R....
分类:
其他好文 时间:
2015-04-21 22:31:08
阅读次数:
148
这个方法不常用,容易被忽略,但是用起来还是蛮方便的@implementation HMAdViewController- (void)viewDidLoad{ [super viewDidLoad]; // 1.背景图片 UIImageView *bg = [[UIImageView all...
分类:
其他好文 时间:
2015-04-21 20:18:38
阅读次数:
98
1 EntityViewInfo viewInfo = super.getDialog().getEntityViewInfoResult();//获取queryDialog对应的视图信息 2 FilterInfo filter=null; 3 if(viewInfo==nul...
分类:
其他好文 时间:
2015-04-21 17:56:55
阅读次数:
134
1.重写initCommonQueryDialog1 @Override2 protected CommonQueryDialog initCommonQueryDialog() {3 CommonQueryDialog queryDlg = super.initCo...
分类:
其他好文 时间:
2015-04-21 17:55:31
阅读次数:
137
protected void initListener() { super.initListener(); beforeListener = new BeforeActionListener(){ @Override public void befo...
分类:
其他好文 时间:
2015-04-21 17:32:23
阅读次数:
333
-(void)viewDidLoad
{
[super viewDidLoad];
imageView=[[UIImageView alloc] initWithFrame:CGRectMake(100, 150, 120, 120)];
imageView.image=[UIImage imageNamed:@"2.jpg"];
[s...
分类:
移动开发 时间:
2015-04-21 13:08:41
阅读次数:
158
引用计数器的基本操作/*
1.方法的基本使用
1> retain :计数器+1,会返回对象本身
2> release :计数器-1,没有返回值
3> retainCount :获取当前的计数器
4> dealloc
* 当一个对象要被回收的时候,就会调用
* 一定要调用[super dealloc],这句调用要放在最后面 2.概念
1> 僵尸对象 :所占用内存已经被回收的对象,僵...
分类:
其他好文 时间:
2015-04-20 15:03:34
阅读次数:
134
取消集成hibernateDaoSupport,改(autowired)注入hiberneteTemplate@Resource(name="mySessionFactory")publicvoidsetMySessionFactory(SessionFactorymySessionFactory){super.setSessionFactory(mySessionFactory);}由于父类的setSessionFactory方法为final,所以无法重写..
分类:
编程语言 时间:
2015-04-19 19:45:08
阅读次数:
134
一 this关键字this关键字可以出现在构造方法和实例方法中,不能出现在静态方法中,这是因为静态方法可以用类名来调用,这时可能还没有任何对象诞生。this主要有两种用法:1 用在构造方法中,调用本类的其他构造方法。 格式为 this([实参列表]); 通过this调用本类的其他构造方法时,该语句....
分类:
编程语言 时间:
2015-04-19 16:03:08
阅读次数:
163