首页 软件开发 代码片段 objective-c ( Page 46 )

objective-c 628

#Objective-C
ios生成三种随机数方法

ios开发-三种随机数方法--个人学习之路的总结。 ios 有如下三种随机数方法: 1.    srand((unsigned)time(0…

2015-01-14 217

#Objective-C
iOS判断手机方向改变

ios开发-判断手机反转 //监听手机方向改变事件 [[NSNotificationCenter defaultCenter] addObserver:self selector:…

2015-01-14 641

#Objective-C
iOS 检测版本更新

如果我们要检测app版本的更新,那么我们必须获取当前运行app版本的版本信息和appstore 上发布的最新版本的信息。 当前运行版本信息可以通过info.plist文件中的 ve…

2015-01-14 200

#Objective-C
获取手机通讯录 iOS去除数字以外的所有字符

// // ViewController.m // 获取手机通讯录 //记得导入头文件#import <AddressBook/AddressBook.h>#impor…

2015-01-14 199

#Objective-C
iOS晃动检测

1、在AppDelegate.h中进行如下设置: 1. -(BOOL)application:(UIApplication *)applicationdidFinishLaunch…

2015-01-14 610

#Objective-C
手机号码 验证

+ (BOOL) isMobileNumber:(NSString *)mobileNum; + (BOOL) isMobileNumber:(NSString *)mobileN…

2015-01-14 665

#Objective-C
关于IQKeyboardManager 键盘第三方库

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictiona…

2015-01-13 353

#Objective-C
如何开启僵尸对象

如何开启僵尸对象

2015-01-12 444

#Objective-C
无限滚动相册切换swift版

//创建并展示一个本地幻灯: //创建SwiftPPT var pptView = CFPPTView(type: PPTType.local) { () -> [PPTDa…

2015-01-11 781

#Objective-C
mac下xode插件的安装路径

// xode插件安装路径:/Users/hehongbo/Library/Application Support/Developer/Shared/Xcode/Plug-ins

2015-01-09 741

#Objective-C
Notification的简单使用

Notification不同版本的使用 //RemoteViews是Notification的内部布局 RemoteViews rv = new RemoteViews(getPa…

2015-01-09 362
1 44 45 46 47 48 53