- 浏览: 233757 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
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 690引用 主题:xcode 6制作动态&静态库 连接:ht ... -
ios 错误合集(updated!)
2015-01-09 11:57 764引用 错误:dyld: Library not loaded ... -
几个不错的xcode插件
2014-09-11 13:33 62521、代码补全插件 http://alcatraz.io 2、 ... -
xcode 插件目录
2014-09-11 13:14 421~/Library/Application\ Suppor ... -
GCD 倒计时
2014-08-19 10:00 963-(void)startTime{ __bloc ... -
Eventkit使用案例
2014-02-15 16:06 3153- (void)createNewEventAndNewR ... -
ios 应用内跳转到系统设置界面的最好写法
2013-04-24 11:43 10115如下是跳转到系统设置诸多界面的url prefs:roo ... -
beeframework "___gxx_personality_sj0", referenced from:错误解决
2013-04-17 13:50 1779到Bee_Precompile.h 找到如下一行: #de ... -
pod update/install git pull 443错误解决
2013-01-22 18:38 2284自从12306.cn抢票插件搞爆github服务器以后,我就再 ... -
[转]如何编写一个CocoaPods的spec文件
2012-12-27 16:25 14249本文转自http://ishalou.com/blog/201 ... -
mac上的小工具(updated)
2012-12-24 18:05 927mac上显示隐藏文件的命令,如果要隐藏则 -bool fals ... -
github README.md 编辑技巧小结 (updated)
2012-12-18 11:39 20221.文字连接 [文字](http://ace.ajax.org ... -
iOS 怎样更方便使用第三方框架
2012-11-29 12:45 1565管理第三方库越来越成为每个程序员的基本工作,因为每次都要去加入 ... -
CocoaPods:管理 Objective-C 專案裡頭各種 Library 關聯性最棒的方式
2012-11-26 14:53 1002介绍: 开发应用的时候第三方的库是不可缺少的,它能提高开发的 ... -
转载:用HTML5/CSS3/JS开发Android/IOS应用框架大全
2012-11-22 15:16 1204现在,用js调用本地代码已经不是一件新鲜事,已经有成熟的库来做 ... -
core data 分页查询
2012-11-07 11:26 1486NSFetchRequest *request = [[N ... -
[转]从Flurry导出数据
2012-10-17 10:51 1140有时我们需要一些详细 ... -
AFNetworking multipart upload
2012-10-12 14:52 5393+ (NSDictionary*)parametersOf ... -
IOS openssl rsa encrypt/decrypt
2012-09-29 15:15 6331对OpenSSL RSA加解密的封 ... -
AVAudioPlayer没声音
2012-09-13 19:54 2687在播放之前加上如下代码 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 OpenCV step by step in VC, 介绍如何使用opencv
How to use CPU frequency scaling How to use CPU frequency scaling DVFS DVFM
How to Use Objects Code and Concepts Holger Gast
How to use TouchJSON in your iPhone apps.pdf
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> ...
This program Demonstrates how to use LIKE operator in Jet SQL Query (uses DAO).
as I have concerned the pack is about how to use vector
How to Use Buses in Simulink.zip
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 the Bayes Net Toolbox? This documentation was last updated on 29 October 2007.
50+ Examples of Movie Color Palettes
how to use eclipse Stephenie Meyer 3. Eclipse.pdf
DDR2使用指南英文版how to use ddr2,应用ddr2必备。
how to use Notes7, very detail user manual
This example greatly demonstrates how to use OpenGL in Visual Basic.
How to create branch and how to do the integration between the different branch in p4