#import "ViewController.h" #import <CoreData/CoreData.h> #import "Person.h" @interface ViewController () @end @implementation ViewController { NSManag ...
分类:
其他好文 时间:
2016-09-13 20:49:48
阅读次数:
127
最近项目中多个页面用到了 商品特价倒计时的功能 为了偷懒 于是自己封装了一个限时抢购 倒计时的view 代码实现如下: 定向价 限时特价 模型代码实现: @implementation STGoodsOrientationPrice @end 限时特价 view实现代码 NSDate+SY 分类代码 ...
分类:
移动开发 时间:
2016-09-13 00:12:41
阅读次数:
241
给UIScrollView写一个延展 .h文件实现: @interface UIScrollView (NSFoundation) @end .m文件实现 @implementation UIScrollView (ScrollTouch) //重写touchesBegin方法 -(void)tou ...
分类:
其他好文 时间:
2016-09-11 14:08:10
阅读次数:
261
/* 注意:要先导入ObjectC运行时头文件,以便调用runtime中的方法*/ #import <objc/runtime.h> @implementation NSObject (PropertyListing) 1、/* 获取对象的所有属性,不包括属性值 */ - (NSArray *)ge ...
分类:
移动开发 时间:
2016-09-10 22:17:49
阅读次数:
169
进注册表按Win+R运行regedit修改下面的值为0就可以了HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy\Enabled ...
@interface PJXPushGuideView : UIView +(instancetype)guideView; +(void)show; @end #import "PJXPushGuideView.h" @implementation PJXPushGuideView +(insta ...
分类:
移动开发 时间:
2016-09-08 23:17:06
阅读次数:
185
封装CoreManager类 @implementation CoreDataManager { //上下文 NSManagedObjectContext *_ctx; } //单例 +(instancetype)sharedManager { static CoreDataManager *man ...
分类:
其他好文 时间:
2016-09-07 17:24:17
阅读次数:
136
About Cache Decorators Ehcache uses the Ehcache interface, of which Cache is an implementation. It is possible and encouraged to create Ehcache decora ...
About Explicit Locking Ehcache contains an implementation which provides for explicit locking, using read and write locks. With explicit locking, it i ...
首先使用的是科大讯飞的sdk 1.语音识别部分 AppDelegate.m #import "AppDelegate.h" #import <iflyMSC/iflyMSC.h> @interface AppDelegate () @end @implementation AppDelegate - ...
分类:
移动开发 时间:
2016-09-01 13:08:06
阅读次数:
323