狗尾草

导航

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 狗尾草-大数据收割基 阅读(2810) 评论(1) 推荐(0)

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

posted @ 2013-06-04 22:52 狗尾草-大数据收割基 阅读(3395) 评论(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 狗尾草-大数据收割基 阅读(4402) 评论(0) 推荐(1)