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

objective-c 628

#Objective-C
iOS监听系统键盘的出现和消失

//注册键盘出现的通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyb…

2015-06-22 817

#Objective-C
iOS MD5加密算法

iOS下的具体实现方式如下 新建一个类 继承 #import <Foundation/Foundation.h> #import <CommonCrypto/Co…

2015-06-22 381

#Objective-C
动态获取键盘高度

//需要手动调用 registerForKeyboardNotifications 方法,其他两个会自动调用,弹出的键盘高 216(输入英文时候),ios 5 系统的 @imple…

2015-06-21 792

#Objective-C
数组 字典 字符串 笔记备

一.不可变字符串 1.追加字符串: [newStr stringByAppendingFormat:@"%C",c]; 2.字符串分割方法: [NSString component…

2015-06-20 735

#Objective-C
UIView 删除 多少秒后执行

UIView *view = [UIView new]; [view performSelector:@selector(removeFromSuperview) withObje…

2015-06-20 858

#Objective-C
iOS 跳转AppStore的两种方法,应用内和直接跳转

#import "ViewController.h" #import <StoreKit/StoreKit.h> @interface ViewController (…

2015-06-18 328

#Objective-C
ios键盘在popViewControllerAnimated 时又弹起

//返回到上一界面 -(void)customBackBtnPressed:(id)send{ UIAlertView *alertView= [[UIAlertView allo…

2015-06-18 648

#Objective-C
iOS设备是否越狱的判断代码

       苹果是非常看重产品的安全性的,所以给用户设计了一套复杂的安全机制。这让喜爱自由,崇尚一切开放的程序员们极度不爽,于是越狱就成了…

2015-06-18 139

#Objective-C
iOS 在聊天界面通过时间戳得到标准格式的字符串

//这个方法写在.h文件里面方便调用 +(NSString *)getMessageDateStringFromTimeInterval:(NSTimeInterval)TimeI…

2015-06-18 336

#Objective-C
基于AFNetworking封装的网络请求工具类

前提,导入AFNetworking框架 关于修改AFN源码:通常序列化时做对text/plan等的支持时,可以一劳永逸的修改源代码,在acceptableContentTypes中…

2015-06-17 913

#Objective-C
JCPullToSelect

self.tableView.header = [JCHeader headerWithDefaultIndex:0 ballColor:nil normalViews:@[JCN…

2015-06-15 993
1 22 23 24 25 26 53