摘要:我们在开发中很多时候要设置UIlabel,UIbutton,UItextfield的字体,这个时候我们就需要用到UIFont,下面简单介绍一下UIFont的用法,仅供参考。UIFont用于获取和设置字体信息。这个类提供用于输出的字体的属性和字型信息。我们可以把其对象像参数一样传入函数中。一般而言我们...
阅读全文
摘要:- (void)setupTextField{ UITextField *tf = [[UITextField alloc] init]; tf.keyboardType = UIKeyboardTypeNumberPad; tf.frame = CGRectMak...
阅读全文
摘要:将模拟器改为Ipad时,调用 判断设备是否为Ipad,但程序并未做出正确的判断,后来做出如下设置: PROJECT->Build Settings->Deployment->Targeted Device Family->iPhone/iPad 再次调试程序,成功识别出设备
阅读全文
摘要:http://blog.csdn.net/l863784757/article/details/49424383
阅读全文
摘要:NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]}; NSMutableAttributedString ...
阅读全文
摘要:fabs(double) // 求double值的绝对值 的函数 abs(int) // 求int型的绝对值的函数 fabsf(float) // 求float型的绝对值的函数这是三个求绝对值的函数,可在代码中直接调用,会返回对应类型的绝对值。
阅读全文
摘要:http://blog.csdn.net/tianyitianyi1/article/details/48805037
阅读全文
摘要:/// 返回当前控制器中状态栏的样式。- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}/// 隐藏当前控制器的状态栏- (BOOL)prefersStatusBarHidden{...
阅读全文
摘要:- (NSString *)getPinYinFrom:(NSString *)chinese{ CFMutableStringRef string = CFStringCreateMutableCopy(NULL, 0, (__bridge CFMutableStringRef)[NSMut...
阅读全文
摘要:http://worldligang.baijia.baidu.com/article/255351
阅读全文
摘要:http://blog.csdn.net/lianbaixue/article/details/10579117http://www.bubuko.com/infodetail-1129405.html
阅读全文
摘要:1、在创建控制器的时候,只有调用viewController.view (eg:viewControllera.view.backgroundColor = [UIColor redColor])。就会立即调用控制器生命周期方法的loadView,然后就调用viewDidLoad。然后返回到view
阅读全文
摘要:http://blog.csdn.net/xiaoxiangzhu660810/article/details/8156053
阅读全文
摘要:NSDictionary *attrDict = @{NSForegroundColorAttributeName : [UIColor redColor]}; NSAttributedString *attrStr = [[NSAttributedString alloc] init...
阅读全文
摘要:#define kColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blu...
阅读全文
摘要:http://blog.csdn.net/hengshujiyi/article/details/21182843
阅读全文
摘要:http://www.cnblogs.com/kenshincui/p/3959951.html
阅读全文
摘要:证书配置及详解:http://blog.csdn.net/phunxm/article/details/42685597上传应用:http://www.bubuko.com/infodetail-648771.html
阅读全文
摘要:DefaultJsonString = @"{\"RowsetRowId\": -1,\ \"OriginalRowid\": -1,\ \"Type\": 0,\ \"_id\": null,\ \"rowkey\": null,\ ...
阅读全文
摘要:如果我们定义属性以new、copy、alloc等关键词开头!!会报错。Property's synthesized getter follows Cocoa naming convention for returning 'owned'
阅读全文
摘要:http://blog.ibireme.com/category/tec/ios-tec/
阅读全文