#import "ShowTimeViewController.h"@interface ShowTimeViewController ()@property (weak, nonatomic) IBOutlet UIButton *btnBigen;@property (weak, nonatom...
分类:
Web程序 时间:
2015-07-22 20:29:23
阅读次数:
124
有人问,在ARC下,IBOutlets到底应该定义成strong 还是 weak ?支持这个答案的人最多,答案仅是摘自官方文档的一个片段:
From a practical perspective, in iOS and OS X outlets should be defined as declared properties. Outlets should generally b...
分类:
移动开发 时间:
2015-07-22 19:05:49
阅读次数:
200
1 import UIKit 2 3 class ViewController: UIViewController{ 4 5 @IBOutlet weak var progress: UIProgressView! 6 7 let operationQueue...
分类:
编程语言 时间:
2015-07-21 22:14:23
阅读次数:
172
//UIDynamicAnimator :动态仿真#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIView *rectGreen;@property (weak,...
分类:
其他好文 时间:
2015-07-19 21:35:11
阅读次数:
123
#import @interface TestCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIButton *btnTest;@end#import "ViewController.h"#import "TestCell.h"...
分类:
其他好文 时间:
2015-07-17 11:20:48
阅读次数:
135
IBOutletUILabel*label; 这个label在Interface Builder里被连接到一个UILabel。此时,这个label的retainCount为2。所以,只要使用了IBOutlet变量,一定需要在dealloc或者viewDidUnload里release这个变量。用IB...
分类:
其他好文 时间:
2015-07-17 00:01:16
阅读次数:
153
//地理编码类
//1、用来根据地名来解析当前的经纬度和其他一些附属消息
//2、根据经纬度来解析地名和其他消息
@interface ViewController ()
@property (weak, nonatomic) IBOutlet MKMapView *mapView;
/* 地理编码**/
@property(nonatomic,strong)CLGeocod...
分类:
其他好文 时间:
2015-07-16 22:27:32
阅读次数:
141
#import "ViewController.h"
#import
#import
#import "JRAnnotation.h"
@interface ViewController ()
@property(nonatomic,strong) CLGeocoder * coder;
@property (weak, nonatomic) IBOutlet MKMapV...
分类:
其他好文 时间:
2015-07-16 22:25:17
阅读次数:
158
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) IBOutlet UITextField *txtLimitInput;5 6...
分类:
其他好文 时间:
2015-07-12 14:09:27
阅读次数:
106
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UISwitch *customSw;@property (weak, nonatomic) IBOutlet UIV...
分类:
其他好文 时间:
2015-07-10 02:10:04
阅读次数:
93