会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙影无痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
下一页
2012年12月13日
ios (ASIHTTPRequest)获取下载文件大小(size)
摘要: [request setDidReceiveResponseHeadersSelector:@selector(didReceiveResponseHeaders:)];- (void)didReceiveResponseHeaders:(ASIHTTPRequest *)request{ N...
阅读全文
posted @ 2012-12-13 14:44 沙影无痕
阅读(176)
评论(0)
推荐(0)
2012年12月11日
NSTimer 小结
摘要: 创建一个 Timer+ scheduledTimerWithTimeInterval: invocation: repeats:+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocat...
阅读全文
posted @ 2012-12-11 10:44 沙影无痕
阅读(143)
评论(0)
推荐(0)
2012年12月10日
关于可移动Button的定制
摘要: 在开发的过程中,有时候需要用到可以移动的Button,这就需要自己去写一个了;设计思路:通过重写几个touch方法- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if (!isMove && !isCance...
阅读全文
posted @ 2012-12-10 15:39 沙影无痕
阅读(168)
评论(0)
推荐(0)
2012年12月4日
ios 全屏/正常 切换时view.frame 的结构设置
摘要: if(bt.tag == 100){//转全屏 bt.tag = 101; [[UIApplication sharedApplication] setStatusBarHidden:YES]; self.view.frame = CGRectMak...
阅读全文
posted @ 2012-12-04 10:46 沙影无痕
阅读(442)
评论(0)
推荐(0)
ios 获取当前屏幕的方向 隐藏状态栏
摘要: UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;获取当前屏幕的方向;[[UIApplication sharedApplication] setStatusBarH...
阅读全文
posted @ 2012-12-04 10:39 沙影无痕
阅读(260)
评论(0)
推荐(0)
2012年11月28日
ios 消除 字符串 首尾空格
摘要: (1)系统去首尾空格方法,使用NSString中的str = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]方法只是去掉左右两边的空格;(2)替换的方法,使用NSString *strUrl ...
阅读全文
posted @ 2012-11-28 10:40 沙影无痕
阅读(114)
评论(0)
推荐(0)
2012年11月19日
ios 任意移动自定义控件
摘要: 先在.h里面定义一个变量CGPoint startPoint;然后在.m里面加入下面两个方法:- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event{ //保存触摸起始点位置 CGPoint point=[[touch...
阅读全文
posted @ 2012-11-19 15:53 沙影无痕
阅读(187)
评论(0)
推荐(0)
2012年11月15日
ASIHTTPRequest 身份验证
摘要: 身份验证,需要条件也就是一个验证的服务器端,这里采用的是一个免费的网络虚拟主机,上传一个index.php的页面进行验证,附上index.php- (void) didFinishPostlogin:(ASIHTTPRequest *) request { NSData *data =[req...
阅读全文
posted @ 2012-11-15 16:27 沙影无痕
阅读(179)
评论(0)
推荐(0)
AVAudioPlayer播放音频文件
摘要: 在viewdidload 加载 [self didLoadAudioPlayer];- (void) didLoadAudioPlayer{ NSString * musicFilePath = @"/Users/Shared/test.mp3"; //创建音乐文件路径 ...
阅读全文
posted @ 2012-11-15 11:55 沙影无痕
阅读(199)
评论(0)
推荐(0)
AVAudioRecorder 录制
摘要: //建立音频会话和声音文件的URL//注: 在.h引用里面加入AVAudioSessionDelegate以及AVAudioRecorderDelegate- (void) viewDidLoad { [super viewDidLoad]; NSString *soundFilePa...
阅读全文
posted @ 2012-11-15 10:45 沙影无痕
阅读(171)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
下一页
公告