一,工程图。 二,代码。 #import "ViewController.h" #import "Base64CodeByteFunc.h" @interface ViewController () @end @implementation ViewController - (void)viewDi ...
分类:
移动开发 时间:
2017-06-26 10:29:28
阅读次数:
163
#import <Foundation/Foundation.h> @interface Person : NSObject +(instancetype)sharePerson; @end #import "Person.h" @implementation Person static Perso ...
分类:
移动开发 时间:
2017-06-23 23:52:02
阅读次数:
397
#import <UIKit/UIKit.h> @interface UIColor (RandomColor) //随机颜色 + (UIColor *)randomColor; @end #import "UIColor+RandomColor.h" @implementation UIColor ...
分类:
其他好文 时间:
2017-06-22 10:13:46
阅读次数:
117
#import "NSArray+Operation.h" @implementation NSArray (Operation) // 数组的平均数 -(float)averageValueOfElements{ NSNumber * value = [self valueForKeyPath:@ ...
分类:
编程语言 时间:
2017-06-15 12:54:35
阅读次数:
159
假设使用Java为一个字符串进行MD5操作,我想轻而易举;但是假设要在client为网页中字符串进行MD5操作又该怎么做呢? 代码1——为字符串等进行MD5操作的js文件(md5.js): /* * A JavaScript implementation of the RSA Data Securi ...
分类:
编程语言 时间:
2017-06-15 12:43:27
阅读次数:
215
@implementation NSString (URLParser) -(NSDictionary*)parserToDict { NSScanner *scanner = [NSScanner scannerWithString:self]; [scanner setCharactersToB ...
分类:
Web程序 时间:
2017-06-14 16:28:16
阅读次数:
201
1. Create a windows service project 2. Add Reference to the assembly which contains the contract and its implementation. 3. Remove the Service1.cs, ad ...
Generic programming: 1 single file (泛型编程:声明与实现放在一起) 模版类 Y.h: class template declaration & implementation (in One File)because some compliers cannot co ...
分类:
其他好文 时间:
2017-06-10 19:23:43
阅读次数:
94
https://github.com/Premiumlab/Python-for-Algorithms--Data-Structures--and-Interviews/blob/master/Trees/Tree%20Representation%20Implementation%20(Lists ...
分类:
其他好文 时间:
2017-06-08 19:47:54
阅读次数:
225
不多说直接上代码 #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinish ...
分类:
移动开发 时间:
2017-06-07 14:19:40
阅读次数:
164