码迷,mamicode.com
首页 >  
搜索关键字:super    ( 6727个结果
UIScrollView基本属性/代理方法
-(void)viewDidload{[super viewDidLoad]; scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; scrollView.backgroundColor = [.....
分类:其他好文   时间:2014-05-19 20:21:40    阅读次数:284
Android 父类super.onDestroy();的有关问题
super.onDestroy(); 的问题。注意:没有显式地在自己的方法中调用父类Activity的onDestroy是会报错的。我的问题很简单,在我覆盖的onDestroy(),方法中需要调用父类的onDestroy。我就是不懂调用的时机,就像下面两种。protectedvoidonDestro...
分类:移动开发   时间:2014-05-17 19:13:46    阅读次数:767
hdu1598find the most comfortable road(并查集+枚举,求起点到终点的边中最大边减最小边差值最小)
Problem Description XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提...
分类:其他好文   时间:2014-05-16 01:43:49    阅读次数:270
parent,son深刻理解this,super关键字
核心点: super关键字,表示调用的是父类对象。 this关键字,表示调用的是当前运行类对象。 那么如果在父类中,使用了关键字,this,此时的this指的是什么呢? 看下面的例子,再加深理解核心店的第二句话就ok了。 parent类: package com.ghsy.thissuper; public class Parent { public void init(){ ...
分类:其他好文   时间:2014-05-14 20:04:29    阅读次数:217
iOS 设置UILabel 的内边距
iOS 设置UILabel 的内边距- (void)drawTextInRect:(CGRect)rect { UIEdgeInsets insets = {0, 5, 0, 5}; [super drawTextInRect:UIEdgeInsetsInsetRect(rect, in...
分类:移动开发   时间:2014-05-14 10:12:21    阅读次数:4319
Android(Java):jni源代码
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Button btn = new Button(this); btn.setText("测试ndk"); btn.setOnCl...
分类:移动开发   时间:2014-05-14 02:33:36    阅读次数:488
android:showAsAction
在res/layout/menu文件夹下,放置login.xml: 代码中配置如下:@Overridepublic boolean onCreateOptionsMenu(Menu menu) {super.onCreateOptionsMenu(menu);getMenuInflat...
分类:移动开发   时间:2014-05-14 02:30:32    阅读次数:581
Android应用程序全屏显示方法
导入两个包: import android.view.Window; import android.view.WindowManager; public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:移动开发   时间:2014-05-13 23:19:51    阅读次数:509
复习的开始
又算是一段时间学习的结束,回首不懂的,模糊的还有,却也发现,不懂的却变懂,这两天要复习了,我一定要认真,我觉得是基础学习最后的战斗和机会了,我今天就从前开始看了一下书,加上网上的资料和总结,主要说说这个简单有麻烦的this和super. this:代表对象。就是所在函数所属对象的引用。this到.....
分类:其他好文   时间:2014-05-13 21:27:47    阅读次数:383
精灵随手指移动起来
效果图: 程序代码: bool HelloWorld::init() { ////////////////////////////// // 1. super init first if ( !CCLayer::init() ) { return false; } CCSize visibleSize =...
分类:移动开发   时间:2014-05-13 16:27:03    阅读次数:402
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!