How can I enter an exponent-formatted digit to the Xcode 8 with Swift 3.0?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

iOS app Developer And Trainer

var button = UIButton() let font:UIFont? = UIFont(name: "Helvetica", size:20) let fontSuper:UIFont? = UIFont(name: "Helvetica", size:10) let attString:NSMutableAttributedString = NSMutableAttributedString(string: "xx", attributes: ) attString.setAttributes(, range: NSRange(location:1,length:1)) ...
read more
var button = UIButton() let font:UIFont? = UIFont(name: "Helvetica", size:20) let fontSuper:UIFont? = UIFont(name: "Helvetica", size:10) let attString:NSMutableAttributedString = NSMutableAttributedString(string: "xx", attributes: [NSFontAttributeName:font!]) attString.setAttributes([NSFontAttributeName:fontSuper!,NSBaselineOffsetAttributeName:10], range: NSRange(location:1,length:1)) button.setAttributedTitle(attString, for: .normal) read less
Comments

iOS Trainer and Developer, keen to teach and learn always.

You can use attributedStrings instead of NSStrings. Best part you can customise each letter or digit. let font:UIFont? = UIFont(name: "Helvetica", size:15) let fontSuper:UIFont? = UIFont(name: "Helvetica", size:8) let attString:NSMutableAttributedString = NSMutableAttributedString(string: "xy", attributes:...
read more
You can use attributedStrings instead of NSStrings. Best part you can customise each letter or digit. let font:UIFont? = UIFont(name: "Helvetica", size:15) let fontSuper:UIFont? = UIFont(name: "Helvetica", size:8) let attString:NSMutableAttributedString = NSMutableAttributedString(string: "xy", attributes: [NSFontAttributeName:font!]) attString.setAttributes([NSFontAttributeName:fontSuper!,NSBaselineOffsetAttributeName:5], range: NSRange(location:1,length:1)) read less
Comments

Related Questions

I want to join an IT academy which can provide me 100% guaranteed job. Can you suggest some?
Hi Anuja, There is nothing or no one in the world who can guarantee you a job except your own hard work and will to succeed in life. A good tutor can guide you in the right direction and provide assistance...
Anuja
Hello, I am new in iOS development. What is the best way of learning iOS and Programming also?
You could start learning objective C for iOS app development. Please contact us for more information.
Vikas
What are the best sources to learn iOS mobile application development?
Search the best IOS developer and learn from that guys or you could find the best institute or trainer who gave the depth knowledge for develop the IOS Apps
Pratibha

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

IOS App Development
Student could work on the normal laptop or system. Some of student are thinking that Mac operating system is mandatory for Learn IOS but this is not mandatory. Thanks Ajay

10 Ways My Life Changed When I Learned To Code
1. I have freedom to make my own schedule. 2. I earn more, but work fewer hours. 3. I can say “no” to job offers. 4. People come to me asking if I can work for them. 5. I never have to...

Phone number validation in swift language
Simple phone number validation in swift ios 8 , Using this function you can easily check phone number . Also have some example for this using NSPredicate etc . you can see lots of method for number...

iOS Interview Questions
Q1.What is property? Ans:Properties are used to access the instance variables from outside of class. Q2. What is synthesized? Ans:After you declare the property in objective­c . we have to tell...

Email Address Validation in iOS 7
-(BOOL) Emailvalidate:(NSString *)tempMail{BOOL stricterFilter = YES;NSString *stricterFilterString = @”+@(+\\.)+{2,4}”;NSString *laxString = @”.+@(+\\.)+{2}*”;NSString *emailRegex...

Recommended Articles

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Looking for iOS Developer Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you