Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-09-2010, 05:43 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 3
Default Updating image of a Button

Hello everyone,

i have a problem and i hope that someone hier can help me :-)

I have a UIButton. Programmatically i can set the Butten Highlighted by saying
Code:
myButton.highlighted = YES;
for exampel. On display, the Button gets Highlighted.. all works fine. Now i call a method from a C++ class

Code:
@implementation myClass
- (void)visualizeEvent 
{
myButton.highlighted = YES;
}
@end
the Button would be set to highligted, no problem, but on display, the Button status does not change. Do have anyone a idea, what the problem is?

A little bit more information about my programm:

To call the visualizeEvent method from the c++ class:

Code:
#import "myClass.h"
class myCPlusPlusClass
{
void function();
void setMyClass(myClass* ptr) { classPtr = ptr; }

myClass* classPtr;
};


void myCPlusPlusClass::function()
{
[classPtr visualizeEven];
}
Thanks in advance!
have a nice week
Marta
martaklein is offline   Reply With Quote
Reply

Bookmarks

Tags
c++, highlighted, uibutton

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 297
20 members and 277 guests
ADY, Alsahir, Dani77, e2applets, iph_s, JasonR, keeshux, mer10, Monstertaco, piesia, prchn4christ, Promo Dispenser, Robiwan, Rudy, sebasx, sly24, Touchmint, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,759
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0