Is it possible to control when loadView() launches?

Here is my situation.  I would like to be able to tap on my camera view to dismiss it, but I am having an issue due to when
UITapGestureRecognizer
becomes active.
Background
When a user presses the camera tab bar button, she is presented with a view with a button on it.  Pressing this button takes her into the camera view.  However, because all of the UITapGestureRecognizer calls are in loadView(), when the user presses the button, the app crashes. The reason it crashes is because the tap is now recognized and is calling a method that only makes sense AFTER the camera view has loaded.
I have tried placing the UITapGestureRecognizer calls in the method that represents the button used to enter the camera view in an attempt to prevent this. But, that does not work.  The UITapGestureRecognizer calls are ignored.  I am not certain, but probably only loadView() can activate UITapGestureRecognizer.
Being able to dismiss the camera by tapping would be a great UI feature, but unless I can control when UITapGestureRecognizer becomes active, I will have to resort to a cancel button to dismiss the camera.  This works fine, but IMO, it's tacky.
If anyone sees error in my thinking, or knows of a hack, please comment away.
Thanks!

@ xnav
Thanks for the suggestion.  This is how my files/methods are being launched:
=
INTO    cameraViewController.m  >   awakeFromNib()
INTO    cameraViewController.m  >   loadView()
  OUT    cameraViewController.m  >   loadView()
INTO    cameraViewController.m  >   viewDidLoad()
  OUT    cameraViewController.m  >   viewDidLoad()
  OUT    cameraViewController.m  >   awakeFromNib()
INTO    tipViewController.m  >   loadView()
  OUT    tipViewController.m  >   loadView()
main view (tipViewController) is now up
Press cameraView tab bar button
  get the cameraView with its view button.    Press same  …
INTO    cameraViewController.m  >   buttonPressed()
INTO    cameraViewController.m  >   initWithFrame()
  OUT    cameraViewController.m  >   initWithFrame()
INTO    cameraViewController.m  >   toggelFlashlight()
  OUT    cameraViewController.m  >   toggelFlashlight()
  OUT    cameraViewController.m  >   buttonPressed()
INTO    cameraViewController.m  >   singleTapDetected()
Crash!  [cameraViewController   imagePickerControllerDidCancel:]: unrecognized ……
==
Looking at all of this, awakeFromNib() is the first method called, so this would not work either.  I am probably doing this totally incorrectly, but when I press the button to take me into the camera view, the UIGesture calls are already waiting for my taps.  I do not want the UIGesture calls to trigger until I am into the camera view.  The singleTapDetected() method is calling imagePickerControlledDidCancel() which is meant to dismiss the camera, but as we know, this only makes sense if the camera view is up.
This is getting to be a lot of trouble, which at the end of the day, no one is going to care about save for yours truly.  So, perhaps I should just throw in the towel and leave this for a future upgrade after I get this app into the store.
I appreciate the help.

Similar Messages

  • When U2 launched their latest album it was downloaded to all iTunes users free of charge.  It does not seem to be possible to delete any or all of these tracks.  Can anybody tell me how to delete these tracks?

    When U2 launched their latest album it was downloaded to all iTunes users free of charge.  It does not seem to be possible to delete any or all of these tracks.  Can anybody tell me how to delete these tracks?

    Hi SJHocking,
    Welcome to the Apple Support Communities!
    If you would like to remove the iTunes gift album “Songs of Innocence”, please follow the instructions outlined in the attached article. 
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases - Apple Support
    Cheers,
    Joe

  • Is it possible to controll the positioning of a new window when someone clicks  one of my links

    I was wondering if it was possible to control the positoning of a new window that pops up  when someone clicks one of my site document links on my dreamweaver site. When a link is clicked and the new window pops up, I'd like to control the window size and positioning of the new window. Is this possible without having to use a tooltip or other option?

    Some browsers will display pop-up windows in the parent window, some will open them in a new tab or new window.  I'm afraid there is nothing you can do about end user settings.
    Creating link to open in a Pop-Up window using DW and the Behaviors Panel
    http://www.cbtcafe.com/dreamweaver/popup_text/index.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Is it possible to control the order that text flows appear when using them as text insets?

    I want to create multiple flows in a FrameMaker file which I can then insert as text insets. I would like to choose the inset using the Body Page Flow: dropdown list. However, there seems to be no order, alphabetical or otherwise, in which these flow appear in the drop down list. Is it possible to control this order, or is there a particular reason it appears the way it does?
    Cheers,

    IIRC, the flows are displayed in the order that they were created.

  • I want to force iTunes to organize my mp3/mp4 files as I want and show that when I launch iTunes

    I find file management in iTunes to be very unApple like. Periodically I import mp3 or mp4 files that show up under music when I launch iTunes. I would like to name and order them by date and put them in a folder, album, or some collection item to facilitate finding and using them later. Copy and paste does not work,
    drag and drop does not work. If I go to where the items are stored as music files I can achieve a named collection of these files ordered as I wish. That, however, does not manifest itself back in iTunes.
    One of two things appears to be the case. Either I cannot manage iTunes as it thinks it owns everything or I simply cannot uses the apple file management paradigm in use for the past two decades on an Apple computer running iTunes. Perhaps both of these are true. Another possibility is to install a different program over which I have control and disable iTunes from ever touching one of my imported files.
    It is possible that Apple intentionally obfuscated file management with iTunes to simplify their commercial management of the iTunes store, and while that is a possibility, understanding it is enigmatic.
    Another quandary is the concept of album. Under "New", playlists are mentioned, but not albums or folders. Yet both may show up mysteriously. There must be a ghost in my computer.
    Help and psychoanalysis will be appreciated.
    RAZ

    Since there are no obvious answers to this dilemma, I have changed my thinking on the subject. It is a title like giving up on teaching a pig to sing. Since I can organize all my mp3 files anyway I choose and furthermore can name them anything I choose I have done so and stored them under a named folder in the Music folder. I can play them with Quick Time and never have to go through iTunes at all.
    Case closed.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • I recently updated my iTunes to version 10.3.1.55 and when i launch the program it says 'iTunes has stopped working' then another window pop up saying me to close program.HELP!!! ME PLEASE!!

    ok i installed new iTunes version 10.3.1.55 and when i launch itunes it says 'iTunes has stopped working' i get to my problem history this is whay i found
    Problem signature
    Problem Event Name:          APPCRASH
    Application Name:          iTunes.exe
    Application Version:          10.3.1.55
    Application Timestamp:          4deec351
    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Fault Module Timestamp:          4ddeb575
    Exception Code:          c0000005
    Exception Offset:          00250000
    OS Version:          6.0.6002.2.2.0.768.3
    Locale ID:          1033
    Additional Information 1:          fd00
    Additional Information 2:          ea6f5fe8924aaa756324d57f87834160
    Additional Information 3:          fd00
    Additional Information 4:          ea6f5fe8924aaa756324d57f87834160
    PLEASE HELP ME!!!!

    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a window pops up saying that the prograam has encountered a problem and sh...

  • Pages version 5.0 installed, but when I launch it's 4.0.5.  How do I fix this?

    I installed OS X version 10.9 successfully on my 2009 iMac.  After installation, the latest versions of Keynote, Numbers, and Pages downloaded as an update. 
    When I launch Pages, it is still the 4.0.5 version.  Both Keynote and Numbers are the new version when launched.
    I'm not sure where to go from here.  When I go to the Pages app in the app store, it says it's installed.  It also says it's installed on the "Updates Installed in the Last 30 Days" screen.
    My iPad has Pages 5.0, so I would like to make sure they both run the same version of the software.
    Thank you in advance for your help.  

    Have you checked your Applications folder for the stand alone Pages 5? It is not installed within the iWorks 09 folder as those apps are still in place. You can choose to use either the old or new version. If necessary, try to control click on a Pages document and then choose Get Info. When open, scroll down and choose with Pages version you want it opened with - as you can see, the new version is the default, but the old version is available (4.3).

  • How do I find my tab history? I had hard drive issues and when I launched my browser after getting it back their was no "restore session" option. I know a tab history is kept, just don't remember where or how to exercise it. Thanks

    Question
    How do I find my tab history? I had hard drive issues and when I launched my browser after getting it back their was no "restore session" option. I know a tab history is kept, just don't remember where or how to exercise it. Thanks

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" if you want to restore multiple windows.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • I uploaded last release of CC (05/28/2014) but it did a mess on the entire pc: when I launched Photoshop it appeared a driver error on my graphic hardware; internet stopped to work and photoshop itself didn't respond.

    Hi, this morning I installed last upgrade of CC (05/28/2014) but it did a mess on the entire pc: when I launched Photoshop it appeared a driver error on my graphic hardware (I checked, everything was up to date nd correctly working) and Photoshop didn't respond; internet stopped to work too.
    The only way was to uninstall The CC App and create a restore point after uninstalling  (It wasn't possible restore a previous one BEFORE the upgrade of this morning....)
    My Processor is Intel(R) Core(TM) i7-4500U CPU @ GHz  2.40 GHz
    RAM is 8GB
    What do I have to do?
    Reinstall it without upgrading it?
    I would really appreciate that upgrades would be tested before being released.... -_-

    Moving this discussion to the Photoshop General Discussion forum.

  • Trigger&Ga​te Express VI. Is it possible to control Dialog Box parameters on the frontal panel?

    When you use a Trigger&Gate Express VI the Dialog Box Options permits you to configure the VI. I am asking if it is possible to control Dialog Box parameters with controls on the Frontal Panel. I am especially interested on Start Level Threshold.

    open the VI that the trigger and gate is in. Right click on the express VI and select open front panel. Then find the control that you want and edit the connector pane to be able to input the parameter that you want. Attached is a modified version that I came up with for you.
    Hope this helps you.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    example_trigger_and_gate.llb ‏92 KB

  • After enabling the archivelog, DB control is not launching, please help

    I am using oracle 11G
    after enabling the archivelog, DB control is not launching, please help

    553ad454-5ce9-4515-bc7c-51c2e7fa3316 wrote:
    Thanks for your reply.
    I have enabled the Archivelog MODE for my database through DB control.
    after some time, DB control https://192.168.1.100:1158/em/console stops working & not opening.
    But I can able to loginto the sqlplus through command mode.
    please help
    Since you have used an IP in the EM's URL, there can be one more possibility besides this that the EM service has been stopped(as suggested by others already) . It may be a reason that EM  service is not up because the IP address has been changed due to a machine reboot. As 9/10 times, the IP addresses are assigned via DHCP  on home laptops and desktops, if this IP address is no longer there, the EM service won't be up. But before we shall come to know about this that whether this is indeed the reason, try the command-emctl status dbconsole and if it says, not running EM, emctl start dbconsole. Post the output of the commands.
    HTH
    Aman....

  • How do I fix "Error loading plugins" when I launch illustrator CS6 on my Mac?

    At some point, I accidently moved one or more file folders in illustrator. When I launch the app now I get a list of the following errors.
    Advanced Select.aip
    Flare.aip
    FlattenTransparencyUI.aip
    ObjectMosaic.aip
    PNGFileFormat.aip
    When the app opens I am missing several necessary components on my artboard.

    Easiest way is to uninstall and reinstall (possibly running the Cleaner tool in between).
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Is it possible to control the parallel port with Lookout 5.0

    I want a simple demo setup on a PC, so I can control the 8 data bits of the parallel port. Example, to use START p/b that would toggle bit 0 and data returned on bit 1.

    It is possible to send bytes to the parallel port using the ASCII object within Lookout. However, it is presently not possible to control the state of the individual bits on the parallel port with Lookout.
    If you need to control the individual bits on a parallel port, consider using LabVIEW. It is much more powerful when programming serial and parallel ports.

  • I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.  How to get it working?

    I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.
    How to get it working?

    My guess is that you won't be able to do much if you threw away the serial number before using it.  The serial number will not have been externally visible on the box though... doing that would make it available for use by anyone who sees the box in any store.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    If you remain unable to locate the serial number you might need to head back to wherever you purchased the product to confirm whether or not you might have thrown out the serial number or if it could even possibly have never been provided.
    Beyond that you need to resolve serial number issues with ASdobe Support directly.  Here is a link for chat:
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

Maybe you are looking for

  • Go to a Website no longer disappears when cursor in blank field

    Normal windows standards dictate that an empty field show blank when a cursor is put in it. However, starting with FF15, the Go to a Website verbiage does not disappear. Is there a config to make this go away? Confusing, because your never sure quick

  • How can i implement a Transaction Processing procedure in my web app ?

    Im planning to enhance my web app servlet. the web app is about Online Banking. since it is Online banking, there would be time where simultaneous user accessing their account. mean several connection is made on my db. I read some article about Trans

  • Using a URL parameter in SQL Query

    Newbie question... I have been developing a dashboard application, and I have been using input bind variables in the SQL. That all works fine. What I would like to do is to have a user go to a page via a URL with paramaters like this: http://atlas:77

  • Video not playing correctly but sound on the videos does

    Hey all. Question for you. Recently my iPod has decided to stop playing the videos shows. The display only shows a picture of the show title (much like the cover art of songs) and the audio plays as if it were playing normally. The files seem good be

  • IPCC 4.0(5) with Sql 2005 Enterprise DB

    Hello, I currently have IPCC 4.0(5) (no SR) doing with an ODBC connection to a SQL 2000 server.  I am preparing to upgrade the SQL 2000 server to SQL 2005 (only upgrading a SQL server, not touching SQL 2000 running on IPCC). According to the document