Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Easy iPad Point Of Sale Application
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mark FX" data-source="post: 1585831" data-attributes="member: 211556"><p>Secondly you will have to access your subtotaalLbl like this.</p><p></p><p>[CODE]</p><p>[self subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]];</p><p>[/CODE]</p><p></p><p>Unless your going to synthesise the IBOutlet property of your label like this.</p><p></p><p>[CODE]</p><p>@implementation ViewController</p><p></p><p>@synthesize subtotaalLbl;</p><p>[/CODE]</p><p></p><p>Then you can access the subtotaalLbl in your original way like this.</p><p></p><p>[CODE]</p><p>[subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]];</p><p>[/CODE]</p><p></p><p>The alternative if you don't want to synthesise the IBOutlet property, is to refer to the subtotaalLbl like this.</p><p></p><p>[CODE]</p><p>[_subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]];</p><p>[/CODE]</p><p></p><p>I think this is where the error message you posted is coming from.</p><p></p><p>Regards Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1585831, member: 211556"] Secondly you will have to access your subtotaalLbl like this. [CODE] [self subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]]; [/CODE] Unless your going to synthesise the IBOutlet property of your label like this. [CODE] @implementation ViewController @synthesize subtotaalLbl; [/CODE] Then you can access the subtotaalLbl in your original way like this. [CODE] [subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]]; [/CODE] The alternative if you don't want to synthesise the IBOutlet property, is to refer to the subtotaalLbl like this. [CODE] [_subtotaalLbl setText: [NSString stringWithFormat:@"%.2f", subtotaal]]; [/CODE] I think this is where the error message you posted is coming from. Regards Mark [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Easy iPad Point Of Sale Application
Top