实现类似读取数据进度条效果
代码如下:
①创建UIProgressView对象
1)定义属性{
NSTimer *_proTimer;//计时
}
@property (nonatomic, retain) UIProgressView *proView;
//显示进度信息
@property (nonatomic, retain) UILabel *proLabel;
@p...
分类:
移动开发 时间:
2015-02-05 23:32:32
阅读次数:
427
UIView在ios开发里面是非常重要的。几乎所有的控件都是从UIView继承下来的。比如UILabel,UIText等。
今天有空看了一下UIView的内部结构。发现其实UIView的显示部分其实委托给CALayer(Core Animation Layer)来做的。
UIView类片段
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIView : U...
分类:
其他好文 时间:
2015-02-05 15:01:39
阅读次数:
241
//阴影颜色@property(nonatomic,retain) UIColor *shadowColor; // default is nil (no shadow)//阴影大小@property(nonatomic) CGSize shadowOffset;
分类:
其他好文 时间:
2015-02-04 18:35:49
阅读次数:
135
sizeWithFont在ios7.0之后失效
cell.myCourse.text=cell_info.course;
cell.myCourse.font=FONT;
CGSize myCourseSize=[cell.myCourse.text
sizeWithAttributes:[NSDictionary
dictionaryWithObjectsA...
分类:
移动开发 时间:
2015-02-03 23:10:01
阅读次数:
403
CGSize labelSize=[self.myDetailLabel.text
boundingRectWithSize:CGSizeMake([UIScreen
mainScreen].bounds.size.width-20,
0) options:NSStringDrawingUsesLineFragmentOrigin
attributes:@{NSFontAttributeN...
分类:
移动开发 时间:
2015-02-03 23:09:50
阅读次数:
471
iframe自适应高度 $("#mainFrame").load(function(){
????var?height?=?$(document.getElementById(‘mainFrame‘).contentWindow.document).height()?+?‘px‘;
????$("#mainFrame").css("height",?h...
分类:
其他好文 时间:
2015-02-03 17:37:53
阅读次数:
84
ios uilable折行后文字怎么都是左对齐...
分类:
移动开发 时间:
2015-01-31 23:22:21
阅读次数:
339
背包系统(三)
10、修改物品脚本,完成物品个数加1的功能
public UISprite sprite;
public UILabel label;
private int count = 1;
public void AddCount(int number)
{
count += number;
label...
分类:
编程语言 时间:
2015-01-29 16:02:29
阅读次数:
263
#pragma mark UILabel 自动高度计算 - (void) labelAutoHeight:(UILabel *) contentLabel:(NSString *) text { ????? ????UIFont *font = [UIFont systemFontOfSize:12]; ????contentLabel.font = f...
分类:
其他好文 时间:
2015-01-28 11:27:33
阅读次数:
182