@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
_scrollview1.backgroundColor = [UIColor greenColor];//设置背景色 绿色
_scrollview2...
分类:
移动开发 时间:
2014-11-07 14:51:49
阅读次数:
284
问题:你想在程序中运行单独的任务时,拥有最大的控制权。例如,你想要根据用户要求,来运行一个长计算请求,同时,主线程 UI 可以自由的与用户交互和做别的事情。讨论:在程序中使用线程:- (void)viewDidLoad { [super viewDidLoad]; // Do any a...
分类:
编程语言 时间:
2014-11-07 12:35:12
阅读次数:
239
错误: java.lang.IllegalStateException: Already attached本文地址: http://blog.csdn.net/caroline_wendy可能原因: @Override
protected void onContinueCreate(Bundle savedInstanceState) {
super.onCreate...
分类:
移动开发 时间:
2014-11-07 08:39:47
阅读次数:
1125
#pragma mark - 去除状态栏干扰的方法- (void)viewDidLoad { [super viewDidLoad]; if (_tableView.style == UITableViewStylePlain) { UIEdgeInsets content...
分类:
其他好文 时间:
2014-11-07 00:57:33
阅读次数:
104
子类继承和调用父类的构造方法1.如果子类没有定义构造方法,则调用父类的无参数的构造方法,.2.如果子类定义了构造方法,不论是无参数还是带参数,在创建子类的对象的时候,首先执行父类无参数的构造方法,然后执行自己的构造方法。3.如果子类调用父类带参数的构造方法,可以通过super(参数)调用所需要的父类...
分类:
其他好文 时间:
2014-11-05 22:45:05
阅读次数:
198
ajax({ url: "./TestXHR.aspx", //请求地址 type: "POST", //请求方式 data: { name: "super", age: 20 }, ...
分类:
Web程序 时间:
2014-11-04 19:34:21
阅读次数:
183
RSSurfaceView直接继承自SurfaceView,实现了SurfaceHolder.Callback回调接口。解析如下:
1、 构造方法1
public RSSurfaceView(Context context) {
super(context);
init();
//Log.v(RenderScript.LOG_TAG, "...
分类:
移动开发 时间:
2014-11-04 17:28:11
阅读次数:
348
#!/usr/bin/envpython#-*-coding:utf-8-*-fromPyQt4importQtCore,QtGuiclassmyWindow(QtGui.QMainWindow):def__init__(self,parent=None):super(myWindow,self)....
分类:
其他好文 时间:
2014-11-04 17:19:36
阅读次数:
377
importsys,osfromPyQt4importQtCore,QtGuiclassThumbListWidget(QtGui.QListWidget):def__init__(self,type,parent=None):super(ThumbListWidget,self).__init__...
分类:
其他好文 时间:
2014-11-04 17:19:01
阅读次数:
230
importthreadingimportsys,timefromPyQt4importQtCore,QtGuiimportpsutilimportosclassMainWindow(QtGui.QMainWindow):def__init__(self):super(MainWindow,self...
分类:
其他好文 时间:
2014-11-04 17:01:15
阅读次数:
114