------------- ViewController.m -------------#import "ViewController.h"#import "CZQuestion.h"@interface ViewController ()@property (weak, nonatomic) IB...
分类:
其他好文 时间:
2015-08-06 20:20:48
阅读次数:
104
#import?"ViewController.h"
#import?"AFNetworking.h"
@interface?ViewController?()?<UIActionSheetDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate>
@property?(weak,?non...
分类:
Web程序 时间:
2015-08-06 13:39:25
阅读次数:
127
一,retain, copy, assign区别1. 假设你用malloc分配了一块内存,并且把它的地址赋值给了指针a,后来你希望指针b也共享这块内存,于是你又把a赋值给(assign)了b。此时a 和b指向同一块内存,请问当a不再需要这块内存,能否直接释放它?答案是否定的,因为a并不知道b是否还在...
分类:
其他好文 时间:
2015-08-05 18:05:58
阅读次数:
95
[html] view
plaincopyprint?
__weak typeof(self)weakSelf=self;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
...
分类:
其他好文 时间:
2015-08-05 16:30:32
阅读次数:
181
****加上数据分离#import "HMViewController.h"#import "HMStudent.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UITableView *tableView;...
分类:
移动开发 时间:
2015-08-04 13:25:39
阅读次数:
171
***表格控件#import "HMViewController.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UITableView *tableView;@end@implementation HMVi...
分类:
移动开发 时间:
2015-08-04 13:10:46
阅读次数:
159
1 import UIKit 2 3 class ViewController: UIViewController { 4 5 @IBOutlet weak var dview: UIView! 6 var dynamicAnimator = UIDynamicAnimator...
分类:
编程语言 时间:
2015-08-04 00:30:26
阅读次数:
160
****************10秒倒计时#import "HMViewController.h"@interface HMViewController () @property (weak, nonatomic) IBOutlet UILabel *counterLabel;@property ...
分类:
移动开发 时间:
2015-08-03 16:39:00
阅读次数:
118
------------- ViewController.m -------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *im...
分类:
其他好文 时间:
2015-08-03 00:49:28
阅读次数:
147
------------- ViewController.m -------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *im...
分类:
其他好文 时间:
2015-08-03 00:47:09
阅读次数:
171