狗尾草

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

06 2013 档案

(ios实战)实现类似于android 的toast控件
摘要:1实现原理创建一个自定义控件,控件中显示文本,同时设置一个动画,三秒钟后,控件的alpha为0,动画完成后,控件移出掉ViewControl2 创建PopView2.1 PopView.h 部分@interface PopView : UIView{ UILabel *_textLabel; int _queueCount;}- (void) setText:(NSString *) text;@end2.2 PopView.m#import "PopView.h"#import <QuartzCore/QuartzCore.h>@imple... 阅读全文

posted @ 2013-06-12 11:17 狗尾草-大数据收割基 阅读(2803) 评论(1) 推荐(0) 编辑

(sqlite实战)sqlite替换换行符号
摘要:在sqlite中 换行符 为x'0a'Sqlite 字段替换换行符 方法为:update question_select set title =replace(title, x'0a','') 阅读全文

posted @ 2013-06-04 22:52 狗尾草-大数据收割基 阅读(3344) 评论(0) 推荐(0) 编辑

(ios实战)MediaPlayer播放视频
摘要:1MediaPlayer内嵌的方式播放视频1.1 导入头文件#import "MediaPlayer/MediaPlayer.h"1.2 定义MoviePlayerController类创建MoviePlayerController类player = [[MPMoviePlayerControlleralloc] init];设置视频路径NSString *path = [[NSBundlemainBundle] pathForResource:self.questiondata.titleimgofType:@"mp4"inDirectory:nil] 阅读全文

posted @ 2013-06-03 15:48 狗尾草-大数据收割基 阅读(4394) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示