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

objective-c 628

#Objective-C
(SYRefreshTable)IOS下拉刷新,上拉加载更多组件

Pull to Refresh * - (BOOL)refresh { if (![super refresh]) return NO; self.pageCount = 1; […

2015-01-08 479

#Objective-C
IOS中get同步异步请求与post同步异步请求

#import "ViewController.h" @interface ViewController () @property(nonatomic,stro…

2015-01-07 255

#Objective-C
iOS 获取城市IP

NSString *IP = @"0.0.0.0"; //http://61.4.185.48:81/g/(中国天气网的接口) NSURL *url = [NS…

2015-01-06 601

#Objective-C
ios 遍历数组的方法

目前所知有七种方法 //第一种 [arr enumerateObjectsUsingBlock: ^(id obj, NSUInteger idx, BOOLBOOL *stop)…

2015-01-05 154

#Objective-C
iOS截屏代码

1.普通界面 /** *截图功能 */ -(void)screenShot{ UIGraphicsBeginImageContextWithOptions(CGSizeMake(6…

2015-01-05 200

#Objective-C
iOS 判断字符串中是否有中文

//判断是否有中文 -(BOOL)IsChinese:(NSString *)str { for(int i=0; i< [str length];i++){ int a =…

2015-01-05 855

#Objective-C
NSDatePicker的使用(设置日期范围)

设置日期期限的时候下面这个方法用不了(升级成ios7之后)  NSDate *toDate =[[NSDate alloc]initWith…

2015-01-05 151

#Objective-C
ios网络开发 同步下载和异步下载

一、同步下载(交互不好,容易出现卡死现象,一般下载数据较小或有特定需求才使用)。  发送同步请求后,程序将停止用户交互,直到服务器返回数据完成后,才进行下一步的操作。 &…

2015-01-05 682

#Objective-C
iOS8使用UIVisualEffectView实现模糊效果

- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the vi…

2015-01-04 665

#Objective-C
AFNetWorking 2.0 使用

/* { dqj = "454545\U5143"; dz = ""; id = 44; jpcs = "0\U6b21\U51f…

2015-01-04 722

#Objective-C
iOS关于UILabel 基本属性 背景图片 背景色

#import "ViewController.h" @interface ViewController () @end @implementation ViewControlle…

2015-01-03 719
1 45 46 47 48 49 53