http://stackoverflow.com/questions/9603165/show-uilabel-animatedhttp://stackoverflow.com/questions/11661077/ios-making-an-object-on-view-controller-di...
分类:
移动开发 时间:
2014-07-29 21:18:32
阅读次数:
276
简易使用UILabel的富文本使用效果:源码:NSString+YX.h NSString+YX.m//// NSString+YX.h// YXKit//// Copyright (c) 2014年 Y.X. All rights reserved.//#import #import "Co...
分类:
其他好文 时间:
2014-07-29 17:14:02
阅读次数:
251
function iframeAutoFit(iframeObj) { setTimeout(function() { if (!iframeObj) return; iframeObj.heig...
分类:
其他好文 时间:
2014-07-29 17:07:32
阅读次数:
136
第一步:NSMutableAttributedString与NSString关联
NSString *pingguString = [NSString
stringWithFormat:@"%@%@",pingguString1,pingguString2];
NSMutableAttributedString *str = [[NSMutableAttributedString
allo...
分类:
其他好文 时间:
2014-07-29 15:13:08
阅读次数:
177
//可以不被电池栏挡住+ (UILabel *)alertLabel{ UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 20.f, 320.f, 0.f)]; label.backgroundColor = [UICo...
分类:
其他好文 时间:
2014-07-29 12:44:16
阅读次数:
338
总结一下iframe在jquery中怎么操作的,下面我来给各位介绍jquery 获取iframe子/父页面的元素及iframe在jquery高度自适应实现方法,各位朋友可参考。
分类:
Web程序 时间:
2014-07-28 23:44:24
阅读次数:
461
// 初始化标签
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)];
// 设置标签文字
label.text = @"This is a test text.This is a test text.This is a test text.";
// 设置标签文字字体
// 使用系统字体
l...
分类:
移动开发 时间:
2014-07-24 23:25:13
阅读次数:
327
有时候,在UILabel的text过长的时候,我们需要让label进行自适应大小,之前我们必须要获得这个UILabel的size,这便是根据text的内容和性质(字体,行间距等决定的)。在ios7中,使用boundingRectWithRect方法来获得CGSize://文字的字体NSDiction...
分类:
其他好文 时间:
2014-07-24 05:05:58
阅读次数:
191
自定义cell,多类型cell混合使用,cell自适应高度自定义cell就是创建一个UITableViewCell的子类把cell上的空间创建都封装在子类中,简化viewController中的代码cell中的空间如何显示Model中的信息cell中声明一个Model类型的属性,viewContro...
分类:
其他好文 时间:
2014-07-23 20:42:35
阅读次数:
366
继承与UIView,直接调用start和stop事件;@interface ActivityIndicatorView (){ UIImageView *_imageView; UILabel *_label;}@end@implementation ActivityIndicatorView-.....
分类:
移动开发 时间:
2014-07-22 00:06:37
阅读次数:
297