传感器实现代码:#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do...
分类:
移动开发 时间:
2015-10-04 12:18:14
阅读次数:
192
#import "MyLayer.h"@implementation MyLayer- (void)drawInContext:(CGContextRef)ctx{ // 设置填充色 CGContextSetRGBFillColor(ctx, 1, 0, 0, 1); // 椭圆 ...
分类:
其他好文 时间:
2015-10-02 19:50:41
阅读次数:
158
Download source - 45.3 KBIntroductionHello everyone! This is my first blog on WCF and I hope that you like it.Today, I will talk about how to implemen...
分类:
其他好文 时间:
2015-10-02 10:08:36
阅读次数:
327
@implementation YMOutData+ (NSDictionary *)objectClassInArray{ return @{@"broadband":[broadband class], @"timepackage":[timepackage class], ...
分类:
编程语言 时间:
2015-09-30 19:32:51
阅读次数:
598
#import "ViewController.h"@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // 1. UILabel *label = [[UILabel alloc] init]; ...
分类:
其他好文 时间:
2015-09-30 13:01:37
阅读次数:
521
#! /usr/bin/env python ###### Linked List python implementation###### @reference Data Structures and Algorithm Analysis in C:Second Edition : Mark All...
分类:
编程语言 时间:
2015-09-30 12:44:23
阅读次数:
223
#import @implementation NSDictionary (Log)- (NSString *)descriptionWithLocale:(id)locale{ NSMutableString *str = [NSMutableString string]; [...
分类:
移动开发 时间:
2015-09-29 16:12:27
阅读次数:
185
一、self的用法oc中的self有点想C++中的this指针,它指向的是调用该方法的对象或者类,看一下例子:@implementation Book- (instancetype)initWithTile:(NSString *)title withPageNum:(NSInteger)pageN...
分类:
其他好文 时间:
2015-09-28 20:43:46
阅读次数:
147
#import "SingalTon.h"@implementation SingalTon//实例变量不能在静态方法中使用//需要定义成全局变量或者静态变量static SingalTon * _singleTon=nil;+(SingalTon *) ShareSingleTon{// 返回对....
分类:
其他好文 时间:
2015-09-28 20:43:14
阅读次数:
203
//// nextViewController.m#import "nextViewController.h"#import "my.h"@interface nextViewController ()@end@implementation nextViewController- (void)vie...
分类:
其他好文 时间:
2015-09-25 08:26:35
阅读次数:
161