aspose file tools*
The moose likes iOS and the fly likes setEnabled Not Working on iPhone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "setEnabled Not Working on iPhone" Watch "setEnabled Not Working on iPhone" New topic
Author

setEnabled Not Working on iPhone

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Has anyone else ran into an issue where a component's (UIButton for example) setEnabled method doesn't work on the iphone? It seems to work fine in the emulator but not on the iphone.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

So it would seem the issue is a bit bigger. In a particular action I disable some buttons, which is visibly noticable. The problem is that if I click on the buttons while they are disabled, once they are enabled, their pressed event fires. So it is like the iphone is caching tap events of sorts and then notifying the buttons once they are enabled again.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Maybe your Action is hooked up to the wrong event?

The iPhone won't cache touches, it just sends messages, and if there isn't anything available to accept the message it just disappears and is gone.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
angel mahe
Greenhorn

Joined: Jul 31, 2009
Posts: 1
onestly...I got the iPod Touch (just like the iPhone, but with no phone feature). It serves my purpose. I didn't need a cell phone, just wanted the iPod and extra features. I get WiFi Internet (basically all internet sites are accessible in some form), it plays music, videos, podcasts, you can download anything from iTunes directly to the iPod (without having to use a computer)...it's really nice.
I would figure the iPhone would be just like the iPod Touch, except with a phone. I've seen the iPhone and it looks to me like the ear piece is kinda small...could make for bad sound. If you are a texter...you may not like it. The keyboard is quite small...though, I don't mind it...I use Facebook.com on my iPod all the time. I'm 100% sure the iPhone doesn't come as pay as you go...it's a contract phone. Sorry.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

angel mahe wrote:onestly...I got the iPod Touch (just like the iPhone, but with no phone feature). It serves my purpose. I didn't need a cell phone, just wanted the iPod and extra features. I get WiFi Internet (basically all internet sites are accessible in some form), it plays music, videos, podcasts, you can download anything from iTunes directly to the iPod (without having to use a computer)...it's really nice.
I would figure the iPhone would be just like the iPod Touch, except with a phone. I've seen the iPhone and it looks to me like the ear piece is kinda small...could make for bad sound. If you are a texter...you may not like it. The keyboard is quite small...though, I don't mind it...I use Facebook.com on my iPod all the time. I'm 100% sure the iPhone doesn't come as pay as you go...it's a contract phone. Sorry.


Huh? The original post is about developing an app and Objective-C api. ;)

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setEnabled Not Working on iPhone