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

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
I want to be a web/ios/android developer though I have studied till class10. So can I do the course to work as a freelancer? M y main query is I have heard about many things which we get to study when we do B.Sc but I am not up to that level so can I do the course?
Hi Ashutosh , I like your confidence and would like to say definitively you can do the course , as you are upto 10 th class so it may be very difficult to get jobs in companies but if you will have good...
Ashutosh
How much fees for IOS developer training and its exact training time?
it's not about time, it's all about how quickly we can grasp all the iOS development techniques I teach u, I mean course could be for 2 r 3 months, 1 hr/day . some students even take 4 months to learn...
Shubham
What courses can I do to become an iOS app developer specializing in games?
Hi Rajeev, You can take two approaches : 1) Learn the native iOS Game Development Framework. It is called SpriteKit. For 3D games, you have SceneKit and Metal. If you already have iOS App development...
Rajeev J
0 0
6

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 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...

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...

Developing iOS Apps Part 1
The Basics Swift opts to use a Javascript-like ‘var’ keyword to define any new variable. So for example to create a new variable with a bit of text in it, you would have this: var...

P Balasubramanyam

0 0
0

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

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...

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