创建UIProgressViewlet progressView = UIProgressView(progressViewStyle:.Default)progressView.frame = CGRectMake(20, 100, 300, 0)self.view.addSubview(prog...
分类:
其他好文 时间:
2015-11-19 12:42:19
阅读次数:
125
最近用swift写了一个音乐播放器。在整理一下知识点。
1、tabview的使用、tabviewcell的UIView动画的添加
2、swift网络异步请求及数据解析
3、手势UITapGestureRecognizer的添加
4、MediaPlayer的使用
5、progressView的使用
知识点比较简单易用。
github地址:DoubanMusic
错误总结:
1、添加手...
分类:
编程语言 时间:
2015-08-21 11:25:12
阅读次数:
194
@interface IndEditorDetailViewController ()"">
{
UIWebView *_webView;
UIProgressView *_progressView;
NJKWebViewProgress *_progressProxy;
}
@end
@implementation IndEditorDetailVie...
分类:
移动开发 时间:
2015-08-19 20:45:16
阅读次数:
134
#import "ViewController.h"
#import
@interface ViewController ()
{
AVPlayer *player;
AVPlayerItem *playerItem;
UIProgressView * progressView;
UISlider *_slider;
...
分类:
其他好文 时间:
2015-08-17 14:11:55
阅读次数:
913
转帖:http://blog.csdn.net/xiangzhang321/article/details/42688133之前做项目的时候有用到环形进度条,先是在网上找了一下第三方控件,发现好用是好用,就是东西太多了,有点复杂,还不如自己写一个简单点适合自己用的。先把自定义控件的效果图贴出来。 其...
分类:
移动开发 时间:
2015-08-05 12:17:24
阅读次数:
125
//多个线程并发执行 一般的时候会将多个线程放到队列中 由队列管理线程工作状态{ UIProgressView * progressView; NSOperationQueue * queue;}- (BOOL)application:(UIApplication *)applicati...
分类:
编程语言 时间:
2015-07-26 18:47:50
阅读次数:
107
效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) UIProgressView *progressView;5 6 @endVi...
分类:
其他好文 时间:
2015-06-15 23:35:15
阅读次数:
266
1.创建request
- (void)download2
{
NSString *urlString = @"http:192.168.0.179:8080/Myweb/download.do";
urlString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]...
分类:
移动开发 时间:
2015-04-13 14:45:18
阅读次数:
671
#import @interface ProgressView : UIView@property(nonatomic,assign)CGFloat progress;@property(nonatomic,strong)UIColor *layColor;@end#import "Progress...
分类:
其他好文 时间:
2015-03-30 22:56:27
阅读次数:
128
进度条的基类是UIProgressView。参数包括样式、进度、进度颜色、滑块颜色。如图:
比如我们做如下修改:
现在我们的进度条变成了如下的样子:
它的方法很简单,只有一个setProgress,设定进度就好了。...
分类:
编程语言 时间:
2015-02-27 17:07:32
阅读次数:
301