Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications What is NSAttributedString
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
What is NSAttributedString
2 Answer(s)      3 years and 6 months ago
Posted in : MobileApplications


Please explain the NSAttributedString in Objective C and also give an example. Thanks.


Advertisement
View Answers

June 11, 2011 at 12:02 PM


NSMutableAttributedString* attrStr = [NSMutableAttributedString attributedStringWithString:@"Hello World!"];

[attrStr setFont:[UIFont systemFontOfSize:12]];

[attrStr setTextColor:[UIColor grayColor]];

[attrStr setTextColor:[UIColor redColor] range:NSMakeRange(0,5)];

myAttributedLabel.attributedText = attrStr;

myAttributedLabel.textAlignment = UITextAlignmentJustify;


June 11, 2011 at 12:03 PM


NSMutableAttributedString Example



Related Tutorials/Questions & Answers:
What is NSAttributedString
What is NSAttributedString  Please explain the NSAttributedString in Objective C and also give an example. Thanks.   NSMutableAttributedString* attrStr = [NSMutableAttributedString attributedStringWithString:@"Hello
what is bit
what is bit  what is bit
Advertisements
What is procedure
What is procedure  What is procedure in computers? What are the primary categories of procedures
What is SQLLoader?
What is SQLLoader?  What is SQLLoader
What is DML?
What is DML?  What is DML
What is an interface?
What is an interface?  What is an interface
What is Trigger?
What is Trigger?  What is Trigger
What is ActionServlet?
What is ActionServlet?  What is ActionServlet
What is FBT
What is FBT   hello, What is FBT
what are indices?
what are indices?  what are indices
what is collections?
what is collections?  what is collections
What is this keyword?
What is this keyword?  What is this keyword
what is Savepoint ?
what is Savepoint ?  what is Savepoint
What is a "constraint"?
What is a "constraint"?  What is a "constraint
What is Index?
What is Index?  What is Index
What's PHP ?
What's PHP ?  What's PHP
What is VLR ?
What is VLR ?  hii, What is VLR
What is JDBC?
What is JDBC?  What is JDBC
What is a transaction and what are ACID properties?
What is a transaction and what are ACID properties?  What is a transaction and what are ACID properties
What is an Abstract Class and what is it's purpose?
What is an Abstract Class and what is it's purpose?   Hi, What is an Abstract Class and what is it's purpose? Thanks
What is DataAccessException?
What is DataAccessException?  Hi, What is DataAccessException? thanks
What is SQLExceptionTranslator?
What is SQLExceptionTranslator?  Hi, What is SQLExceptionTranslator? Thanks
What is casting?
What is casting?   Hi, What is casting? thanks
What is IOC ?
What is IOC ?  HI, What is IOC or Dependency Injection? Thanks
What is Externalizable?
What is Externalizable?   Hi, What is Externalizable? Thanks
What is the % operator?
What is the % operator?   Hi, What is the % operator? thanks
What are Struts?
What are Struts?  What are Struts? Can anyone explain me what are the Struts framework and what are its uses? Thanks
What is WAP?
What is WAP?  What is WAP?   Hi, Check the tutorial: What is WAP? Thanks
What is CRM?
What is CRM?  Can anyone tell me What is CRM? Thanks
what is RUP?
what is RUP?  hello, what is RUP??   hii, RUP is stands for Rational Unified Process
What is a tuple?
What is a tuple?  What is a tuple?   hi, A tuple is an instance of data within a relational database. Thanks
Advertisements
 

 

 

DMCA.com