新建NSString的分类,代码如下#import "NSString+MD5.h"#import @implementation NSString (MD5)//32位- (NSString *)getMd5_32Bit { const char *cStr = [self UTF8Stri...
分类:
其他好文 时间:
2015-11-29 17:57:31
阅读次数:
109
@interface NSArray (Log)@end#import "NSArray+Log.h"@implementation NSArray (Log)- (NSString *)descriptionWithLocale:(id)locale{ NSMutableString *str =...
分类:
其他好文 时间:
2015-11-28 18:18:06
阅读次数:
168
1 #import 2 3 @interface FKCustomView : UIView 4 5 @end 6 7 CustomView.m 8 #import "FKCustomView.h" 9 10 @implementation FKCustomView11 12 //定义两个...
分类:
移动开发 时间:
2015-11-28 18:12:26
阅读次数:
246
1 #import "BNRHypnosisView.h" 2 3 @implementation BNRHypnosisView 4 - (instancetype)initWithFrame:(CGRect)frame 5 { 6 self = [super initWithFram...
分类:
其他好文 时间:
2015-11-28 18:01:56
阅读次数:
136
首先就是获取键盘的尺寸,需要手动调用registerForKeyboardNotifications 方法,其他两个会自动调用,弹出的键盘高 216(输入英文时候),@implementation ViewController- (void)viewDidLoad{ [super viewDidL....
分类:
移动开发 时间:
2015-11-27 19:32:00
阅读次数:
188
#import "YZViewController.h"@interface YZViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation YZViewContro...
分类:
其他好文 时间:
2015-11-27 14:28:47
阅读次数:
151
@看到这个关键字,我们就应该想到,这是Object-C对C语言的扩展,例如@interfaceXXX。@interface声明类@implementation实现类@protocol声明协议@optional与@protocol配合使用,说明协议中的某个或者某几个方法可以不实现@required与@...
分类:
其他好文 时间:
2015-11-27 01:05:18
阅读次数:
225
建立smo.m% function [alpha,bias] = smo(X, y, C, tol)function model = smo(X, y, C, tol)% SMO: SMO algorithm for SVM%%Implementation of the Sequential Min...
分类:
编程语言 时间:
2015-11-25 15:02:35
阅读次数:
1332
带你看看Objective-C的精髓1:接口与实现@interface...@end@implementation...@end@class接口(头文件)实现文件向前引用注:类别通过增加新的类和实例方法来扩展现有类的行为。作为惯例,类别被定义在它们自己的.{h,m}文件里,2:实例变量可视性@pub...
分类:
移动开发 时间:
2015-11-24 14:26:05
阅读次数:
858
1 写入plist下面是利用字典将数据写入到.plist文件#import "ViewController.h" @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [self createPlis...
分类:
其他好文 时间:
2015-11-21 21:13:50
阅读次数:
162