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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 11-12-2011, 08:15 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Question Buttons lost focus?

I'm adding a UIImageView that covers the entire screen, and later removing it with a call to removeFromSuperview.
(e.g. splash screen).

However, at random times, after the view is removed, some buttons on the screen don't respond to the first click.
I have to click a second time for them to respond. Or maybe wait two seconds after the view is removed
before I start clicking again.

Have these buttons somehow lost focus? Should a subview automatically resign itself as a first responder
when removed from the superview? I shouldn't have to explicitly call resignFirstResponder or becomeFirstResponder?

Last edited by samurle; 11-12-2011 at 04:43 PM.
samurle is offline   Reply With Quote
Old 11-12-2011, 04:43 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Question

Here's a better question:
Can I prevent a UIImageView from becoming a first responder?

If I set userInteractionEnabled = NO; for the subview that covers the entire screen, will it stop
becoming a first responder, or will it still steal mouse click focus?
samurle is offline   Reply With Quote
Old 11-21-2011, 10:49 AM   #3 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Your problem is very weird.

Buttons shouldn't be losing focus. If you can see it, definitely you should be able to tap directly. My guess is probably you have some other transparent UIVIew blocking it temporarily...
rocotilos is offline   Reply With Quote
Reply

Bookmarks

Tags
focus

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: 397
16 members and 381 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, chiataytuday, dre, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, mbadegree, n00b, pbart, Retouchable, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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