import UIKitclass LableViewController: BaseViewController { override func viewDidLoad() { super.viewDidLoad() let bodyFontDescriptor = UIFontDes...
分类:
其他好文 时间:
2014-12-03 21:14:04
阅读次数:
164
Android客户端主要代码:
public ImageHttp(Context context) {
super(context);
filePath = context.getCacheDir().getAbsolutePath();
}
public void uploadUserImg(Bitmap bitmap,
IHttpSenderCallBa...
分类:
Web程序 时间:
2014-12-03 17:14:52
阅读次数:
150
关于题中三个控件的简要使用例子。
代码
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// 设置视图背景色
[self.view setBackgroundColor:[UICo...
分类:
其他好文 时间:
2014-12-03 15:52:01
阅读次数:
135
通过连续按两次back键,弹出Toast提示再按一次退出功能。关键代码如下:
第一种方式:
/**
* 连续按两次返回键就退出
*/
private int keyBackClickCount = 0;
@Override
protected void onResume() {
super.onResume();
...
分类:
移动开发 时间:
2014-12-03 10:32:53
阅读次数:
179
/* 1.方法的基本使用 1> retain :计数器+1,会返回对象本身 2> release :计数器-1,没有返回值 3> retainCount :获取当前的计数器 4> dealloc * 当一个对象要被回收的时候,就会调用 * 一定要调用[super dealloc],这句调用要放在.....
分类:
其他好文 时间:
2014-12-03 00:25:05
阅读次数:
150
在我们创建一个新的.h 和 .m文件时,我们会看到.h:@implementation TestViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loadin...
分类:
其他好文 时间:
2014-12-02 20:42:38
阅读次数:
122
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"--iphone--%@",[self getNewPhoneSt...
分类:
其他好文 时间:
2014-12-02 19:00:57
阅读次数:
202
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"--float-%@-",[self stringDisposeW...
分类:
其他好文 时间:
2014-12-02 18:45:50
阅读次数:
159
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSLog(@"--self-machine-%@",[self machineN...
分类:
其他好文 时间:
2014-12-02 18:42:39
阅读次数:
152
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UITextField *textField=[[UITextField ...
分类:
其他好文 时间:
2014-12-02 17:12:03
阅读次数:
156