- 浏览: 236653 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
lanzhiyuan:
楼主还混这里不?NSData *data = [NSURLCo ...
[转] 为UIWebView实现离线浏览 -
hyc4117:
#define OpenSSLRSAPublicKeyFile ...
IOS openssl rsa encrypt/decrypt -
guogongjun:
确实有效,不错,感谢啦大神
[转]安装openfire后admin无法登录管理控制平台 -
xiongyoudou1:
怎么办,而且你那下载的demo和你讲解的不是一样
[转] 为UIWebView实现离线浏览 -
xiongyoudou1:
有问题。执行到方法NSData *data = [NSURLC ...
[转] 为UIWebView实现离线浏览
本文转自:http://soulwithmobiletechnology.blogspot.com/2012/07/how-to-use-nsattributedstring-in-ios-6.html,版权归作者所有。
infoString=@"This is an example of Attributed String"; NSMutableAttributedString *attString=[[NSMutableAttributedString alloc] initWithString:infoString]; NSInteger _stringLength=[infoString length]; UIColor *_black=[UIColor blackColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:30.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_black range:NSMakeRange(0, _stringLength)];
UIColor *_red=[UIColor redColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:72.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeColorAttributeName value:_red range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeWidthAttributeName value:[NSNumber numberWithFloat:3.0] range:NSMakeRange(0, _stringLength)];
UIColor *_red=[UIColor redColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:72.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeColorAttributeName value:_red range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeWidthAttributeName value:[NSNumber numberWithFloat:-3.0] range:NSMakeRange(0, _stringLength)];
UIColor *_red=[UIColor redColor]; UIColor *_green=[UIColor greenColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:72.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_green range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeColorAttributeName value:_red range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSStrokeWidthAttributeName value:[NSNumber numberWithFloat:-3.0] range:NSMakeRange(0, _stringLength)];
UIColor *_green=[UIColor greenColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:72.0f]; NSShadow *shadowDic=[[NSShadow alloc] init]; [shadowDic setShadowBlurRadius:5.0]; [shadowDic setShadowColor:[UIColor grayColor]]; [shadowDic setShadowOffset:CGSizeMake(0, 3)]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_green range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSShadowAttributeName value:shadowDic range:NSMakeRange(0, _stringLength)];
UIColor *_red=[UIColor redColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:72.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_red range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSKernAttributeName value:[NSNumber numberWithInt:5] range:NSMak
UIColor *_red=[UIColor redColor]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:30.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_red range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:2] range:NSMakeRange(0, _stringLength)];
UIColor *_blue=[UIColor blueColor]; UIColor *_blueL=[UIColor colorWithRed:0 green:0 blue:0.5 alpha:0.7]; UIFont *font=[UIFont fontWithName:@"Helvetica-Bold" size:30.0f]; [attString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSForegroundColorAttributeName value:_blue range:NSMakeRange(0, _stringLength)]; [attString addAttribute:NSBackgroundColorAttributeName value:_blueL range:NSMakeRange(0, 20)];
发表评论
-
ios 开发技术
2015-01-09 11:59 740引用 主题:xcode 6制作动态&静态库 连接:ht ... -
ios 错误合集(updated!)
2015-01-09 11:57 796引用 错误:dyld: Library not loaded ... -
几个不错的xcode插件
2014-09-11 13:33 63261、代码补全插件 http://alcatraz.io 2、 ... -
xcode 插件目录
2014-09-11 13:14 456~/Library/Application\ Suppor ... -
GCD 倒计时
2014-08-19 10:00 1007-(void)startTime{ __bloc ... -
Eventkit使用案例
2014-02-15 16:06 3200- (void)createNewEventAndNewR ... -
ios 应用内跳转到系统设置界面的最好写法
2013-04-24 11:43 10163如下是跳转到系统设置诸多界面的url prefs:roo ... -
beeframework "___gxx_personality_sj0", referenced from:错误解决
2013-04-17 13:50 1840到Bee_Precompile.h 找到如下一行: #de ... -
pod update/install git pull 443错误解决
2013-01-22 18:38 2350自从12306.cn抢票插件搞爆github服务器以后,我就再 ... -
[转]如何编写一个CocoaPods的spec文件
2012-12-27 16:25 14308本文转自http://ishalou.com/blog/201 ... -
mac上的小工具(updated)
2012-12-24 18:05 1019mac上显示隐藏文件的命令,如果要隐藏则 -bool fals ... -
github README.md 编辑技巧小结 (updated)
2012-12-18 11:39 20691.文字连接 [文字](http://ace.ajax.org ... -
iOS 怎样更方便使用第三方框架
2012-11-29 12:45 1609管理第三方库越来越成为每个程序员的基本工作,因为每次都要去加入 ... -
CocoaPods:管理 Objective-C 專案裡頭各種 Library 關聯性最棒的方式
2012-11-26 14:53 1041介绍: 开发应用的时候第三方的库是不可缺少的,它能提高开发的 ... -
转载:用HTML5/CSS3/JS开发Android/IOS应用框架大全
2012-11-22 15:16 1261现在,用js调用本地代码已经不是一件新鲜事,已经有成熟的库来做 ... -
core data 分页查询
2012-11-07 11:26 1534NSFetchRequest *request = [[N ... -
[转]从Flurry导出数据
2012-10-17 10:51 1182有时我们需要一些详细 ... -
AFNetworking multipart upload
2012-10-12 14:52 5434+ (NSDictionary*)parametersOf ... -
IOS openssl rsa encrypt/decrypt
2012-09-29 15:15 6382对OpenSSL RSA加解密的封 ... -
AVAudioPlayer没声音
2012-09-13 19:54 2735在播放之前加上如下代码 AVAudioSession * ...
相关推荐
You should ensure that the server's public keys are loaded by the client as described in How to use SFTP (with server validation - known hosts), or you may want to switch off server validation to get ...
this article introduces how to use awk in linux
How to use projector
How to use epoll A complete example in C How to use epoll A complete example in C How to use epoll A complete example in C How to use epoll A complete example in C
How to Use Objects Code and Concepts Holger Gast
paths and layers Build web files Master the basics of Photoshop with the visual examples and easy-to-follow lessons in How to Use Photoshop CS 2. <br> ...
How to use the Bayes Net Toolbox? This documentation was last updated on 29 October 2007.
Lists I- How to use lists in Excel 2003.xlt
Lists I- How to use lists in Excel 2003(2).xlt
how to use array in jaba
How to use 256 Color Bitmaps in ImageList (Win32 SDK solution)如何在ImageList中使用256色的位图(Win32 SDK的解决方案)(5KB)
How to use HttpWebRequest and HttpWebResponsein _NET
IBM How to use Seven Keys To Success.
Simple application that shows how to use the Data Control to connect to the Biblio.mdb database and display all authors in the Authors table.
How to Use Objects will help you gain that understanding, so you can write code that works exceptionally well in the real world. Author Holger Gast focuses on the concepts that have repeatedly ...
You'll review how these types of machine learning tasks are implemented and performed so that you can use them in your own apps. Beginning Machine Learning in iOS is your guide to putting machine ...
HOW TO USE SDRAM ,sdr sdram的用户手册,比datasheet讲述的详细!
how to use spring validator