public class Link {
public int iData;
public double dData;
public Link next;
public Link(int iData, double dData) {
super();
this.iData = iData;
this.dData = dData;
}
public void dis...
分类:
编程语言 时间:
2015-05-14 18:45:19
阅读次数:
159
privateclassImagePagerAdapterextendsFragmentPagerAdapter{publicListfileList;publicImagePagerAdapter(FragmentManagerfm,ListfileList){super(fm);this.fil...
分类:
移动开发 时间:
2015-05-14 18:39:15
阅读次数:
187
今天用下面这个方法添加UIImageView但是运行却不显示@interface ViewController ()
@property(nonatomic, weak)UIImageView *imageView;
@end@implementation ViewController - (void)viewDidLoad {
[super viewDidLoad];
UIImag...
分类:
移动开发 时间:
2015-05-13 19:47:24
阅读次数:
152
格式-(instancetype)init(){ self=[super init] if(self){ } return self; } 自定义构造方法规范1)一定是对象方法,以减号开头2)返回值一般是id类型3)方法名一般以initWith开头 带参数的构造方法-(ins...
分类:
其他好文 时间:
2015-05-13 19:19:25
阅读次数:
120
继续改进上面文章中的图片浏览器小案例,将数据放到字典中. 首先了解一下,viewDidLoad方法的作用:@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any addit...
分类:
其他好文 时间:
2015-05-13 19:17:31
阅读次数:
107
public class VolleyTimeOutTestDemo extends Request {
Listener mListener;
public VolleyTimeOutTestDemo(int method, String url, Listener mListener, ErrorListener listener) {
super(meth...
分类:
其他好文 时间:
2015-05-13 13:04:39
阅读次数:
106
先看一个使用HandlerThread的例子:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
HandlerThread thread = new HandlerThread("handler_t...
分类:
移动开发 时间:
2015-05-13 12:54:05
阅读次数:
162
public class Person{ private String name;//,sex; private int age; public Person(String name, int age) { super(); this.name =...
分类:
其他好文 时间:
2015-05-13 12:16:11
阅读次数:
119
self 相当于 java中的thisself使用总结1.self谁调用当前方法,self就代表谁2.self在对象方法中,self代表当前对象3.self在类方法中个,self代表类[self 方法名称]; 调用其他方法(类方法/对象方法)self可以简单理解为指自己 self使用注意1)同时有....
分类:
其他好文 时间:
2015-05-13 11:57:22
阅读次数:
106
在iOS开发中,我们经常要用到下拉刷新来加载新的数据。iOS原生就带有该方法,下面就iOS自带的下拉刷新方法来简单操作。1、在TableView里,一打开软件,我们就调用下拉刷新事件。- (void)viewDidLoad { [super viewDidLoad]; // 集成刷新控件...
分类:
移动开发 时间:
2015-05-13 00:50:24
阅读次数:
142