07 2014 档案
摘要:#import #import @interface MjMusicViewController : UIViewController{ NSInteger controlPlayStyle; NSInteger controlPlay; NSMutableArray *timeA...
阅读全文
摘要:```objc#import "ViewController.h"int threadNumber = 0;int newThingNumber = 0;@interface ViewController ()@end@implementation ViewController- (void)vie...
阅读全文
摘要:```objc#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *action;@end@implementation ...
阅读全文
摘要:#import #import "Person.h"#import "BankAccount.h"int main(int argc, const char * argv[]){// 实例化一个人, 表示是这个名字叫wangdelong的人, 准备在银行开户 Person *person = [[...
阅读全文
摘要:#import "MJmainViewController.h"@interface MJmainViewController ()@end@implementation MJmainViewController- (id)initWithNibName:(NSString *)nibNameOrN...
阅读全文
摘要:#import "MJcostom.h"@implementation MJcostom- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { self.backgroundColor=[U...
阅读全文
摘要:#import "QYCustomView.h"/*#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效*/@implementati...
阅读全文
摘要:#import "QYCustomView.h"#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效@implementation Q...
阅读全文
摘要:#import "ViewController.h"#import @interface ViewController () //这里为什么要把它设置成为属性?为了就是解决强引用的问题,如果不设置,locationManger会在花括号之后,就会释放掉,这样就看不到了我们想要的地址改变信息,arc情...
阅读全文
摘要://当我们的事件开始的时候调, 对于touch来说, 实际上当手指头放到屏幕上的时候,这个方法会被调用- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"%s",__func__);}//当我们手指点击屏...
阅读全文

浙公网安备 33010602011771号