在老版本的XCode里面,创建项目之后会自动创建有pch文件,在里面往往写一些经常使用的框架头文件或者一些宏定义的URL地址,这里面定义后可全局使用,但是在Xcode6里面项目创建后不再自带pch文件。pch全称为“precompiled header”,也就是预编译头文件,有利于节约开发时间、代码维护时间。
创建方式 New File :
取名字 N...
分类:
移动开发 时间:
2014-11-13 20:50:34
阅读次数:
195
Xcode6的preference文件被统一放在了一个叫做Preferences的文件夹中,里面有好多偏好设置的plist文件。
这个文件的路径是/Users/你的用户名/Library/Developer/CoreSimulator/Devices/模拟器UDID/data/Library/Preferences...
分类:
移动开发 时间:
2014-11-13 12:55:51
阅读次数:
262
问:
AFNetworking2.0 encodes parameters with UTF8. How can I change AFNetworking 2.0's parameter encoding to gb2312?
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding (kCFStringEncodi...
分类:
Web程序 时间:
2014-11-13 00:41:36
阅读次数:
228
问:
This is my current call to (asmx) SOAP web service:
NSString *soapMessage =
[NSString stringWithFormat:
@""
""
""
""
"%i"
"%@"
"%@"
""
""
"...
分类:
Web程序 时间:
2014-11-13 00:38:25
阅读次数:
204
问:
As the title implies, I am using AFNetworking in an iOS project in which the application talks to a server. When the user signs in, the server responds by sending back a success flag and the res...
分类:
Web程序 时间:
2014-11-12 23:04:36
阅读次数:
278
问:
Can you help me to understand, how to use UIActivityIndicatorView+AFNetworking or
UIProgressView+AFNetworking. Do I need to create one more UIViewController and if yes, where do I need to impleme...
分类:
Web程序 时间:
2014-11-12 23:01:38
阅读次数:
266
这两天由于会用到framework所以研究了一下framework的制作,我用到了xcode6.1、AFNetworing。 转载请注明http://blog.csdn.net/mengxiangyue 废话不多说了,下面是步骤: 1 建立一个single view application工程,然后打开工程中的Main.storyboard,选中里面的唯一一个ViewController,点击菜单...
分类:
其他好文 时间:
2014-11-12 09:19:48
阅读次数:
265
现实的功能,就是一个简易的微博timeline界面:...
分类:
Web程序 时间:
2014-11-11 12:43:37
阅读次数:
246
这几天在做图片上传的时候,碰到一个问题,就是只要我追加图片就会请求超时,以下是代码:
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObje...
分类:
Web程序 时间:
2014-11-10 12:09:49
阅读次数:
196
AFNetworking是一个轻量级的iOS网络通信类库。它建立在NSURLConnection和NSOperation等类库的基础上,让很多网络通信功能的实现变得十分简单。它支持HTTP请求和基于REST的网络服务(包括GET、POST、 PUT、DELETE等)。支持ARC。Github地址:h...
分类:
Web程序 时间:
2014-11-08 14:49:59
阅读次数:
192