Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setEnabled Not Working on iPhone

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
angel mahe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic