Amazon.com Widgets Ex.21-1 Question
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2013, 10:01:12 AM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Answers to Exercises
| | |-+  Chapter 21
| | | |-+  Ex.21-1 Question
Pages: [1]   Go Down
Print
Author Topic: Ex.21-1 Question  (Read 394 times)
clp274
Newbie
*
Posts: 8


Email




« on: January 17, 2012, 09:44:16 AM »

Is it possible to set the UILabel's text to a string that isn't displayString? I tried to do that in the convert method and while it would log in my NSLog, it wouldn't show in my IOS simulator. I did
NSMutableString *str = [NSMutableString stringWithFormat:"%f", result];
// I calcualted result as the converToNum double of myCalculator.accumulator
I then tried to set str to the display's text but it wouldn't work that way. It only worked if I stored the result in displayString and then set the text of display to it. Why exactly am I forced to use displayString and not an arbitrary string for display?
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.