码迷,mamicode.com
首页 >  
搜索关键字:nsurl    ( 646个结果
ios播放音乐
1、背景音乐播放 循环播放长音乐 支持mp3格式#import ; 1 NSString *musicFilePath = [[NSBundle mainBundle] pathForResource:@"changan" ofType:@"mp3"]; //创建音乐文件路径 2 NSURL *m....
分类:移动开发   时间:2014-06-10 21:24:46    阅读次数:251
{"ret":100029,"msg":"client request's api name is not existed"}
AFNetworking对Path的定义问题: 如果把这一串:https://graph.qq.com/user/get_user_init 定义成baseURL 那么后面加的任何Path,都会在Path前面加上一个/ 这个跟NSURL有关系,AF的baseURL是用NSURL实现的,NSURL会把你给的字符串拆分成scheme,host,path,query这些东西 然后AF再处...
分类:Windows程序   时间:2014-06-10 08:12:29    阅读次数:678
本地缓存机制之二
4、下面我们设计缓存项下载成功和失败的两个委托方法:@protocol CacheItemDelegate //下载成功执行该方法- (void) cacheItemDelegateSucceeded :(CacheItem *)paramSender withRemoteURL:(NSURL *)...
分类:其他好文   时间:2014-06-09 22:22:24    阅读次数:338
网络请求ASIhttp
#pragma mark 网络请求-(void)httpNetworkData{ NSString *str =@"http://115.29.177.74:8800/loose_change/login?"; NSURL *url=[NSURL URLWithString:str]; ...
分类:其他好文   时间:2014-06-09 18:24:47    阅读次数:252
ios中的ASIHTTPRequest的同步请求和异步请求
1、首先加入ASI开源库 2、 WebImageView.h #import #import "ASIHTTPRequest.h" @interface WebImageView : UIImageView - (void)setImageURL:(NSURL *)url; @end WebImageView.m #import "WebImageView.h" #import "ASIHTTPRequest.h" ...
分类:移动开发   时间:2014-06-08 10:54:39    阅读次数:217
openUrl
?UIApplication有个功能十分强大的openURL:方法- (BOOL)openURL:(NSURL*)url;-?openURL:方法的部分功能有?打电话UIApplication *app = [UIApplication sharedApplication];[app openURL...
分类:其他好文   时间:2014-06-02 07:25:27    阅读次数:181
[掌眼]从iPhone UIWebview中打开itunes.apple.com链接启动App Store
方法一:适用于App不适用于UIWebViewNSURL *iTunesURL;// Process a LinkShare/TradeDoubler/DGM URL to something iPhone can handle- (void)openReferralURL:(NSURL *)ref...
分类:移动开发   时间:2014-05-25 14:02:32    阅读次数:377
关于UIWebView的一些事---转载
转自:http://www.cocoachina.com/applenews/devnews/2013/0105/5473.html最近做了浏览器的项目,和UIWebView大了不少交道,所以专门开个帖子讲讲相关内容吧,想到什么就更新什么。 基础篇:NSURL介绍http://blog.csdn.n...
分类:Web程序   时间:2014-05-22 05:54:47    阅读次数:363
ios ASIHttpRequest库进行DELETE操作时delete带有参数表单的使用方法
1,普通的DELETE只需加上下述一句code: [request setRequestMethod:@"DELETE"];2,附带有参数表单的情况(一次删除请求): ASIFormDataRequest *request; NSURL *baseURL = [NSURL URLWithString:@"http://www.baidu.com/xx/"]; reque...
分类:移动开发   时间:2014-05-21 14:39:37    阅读次数:321
ios项目开发(天气预报项目):使用正则获取 weather.com.cn网站信息
NSString *pattern = @"(?).*?(?=)"; 2. 3. NSString *pattern1 = @""; 4. 5. NSURL *URL = [NSURL URLWithString:@"http://www.weather.com.cn/weather/101010100.shtml"]; 6. NSString *string = [NSStri...
分类:移动开发   时间:2014-05-15 15:12:23    阅读次数:265
646条   上一页 1 ... 62 63 64 65 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!