Friday, March 9, 2012

iOS Camera/Photo demo - PREVIEW - AS-IS

I'm only posting this because a lot of folks have been asking for it.

This demo is provided as-is with no guarantees of working on any device whatsoever.

You have been warned. It's by no means complete. Not even tested since 10/11/2011 - not tested on iOS 5.0 or 5.1. Last I tested it was on 4.3 I think.

I'll replace it when I get time to finish it. Feel free to send me back a 10x better version.

BTW - you *have* to hack FMX_Platform_iOS.pas and know what you're doing to use this demo. You have to surface mainwindow and whatever else Xcode tells you is missing. You can do so by moving the declarations from the implementation section to the interface section. All warranties may very well be void by doing so, so back the file up before breaking it.

Disclaimer done... ;)



  1. Cool!

    Every information about iOS/Dehi XE2 is very useful and much appreciated! Even if not potentially fully functional at the time, probably worth looking into a source written by someone that knows their stuff.

    Keep up the great work!


  2. Just wondering, if it takes so much hastle to get there, why not develop in Xcode and InterfaceBuilder in the first place? ;-)

  3. Hey Anders,
    as promised, here,s my first-hand feedback.
    As you probably know, I had to hack the FMX_Platform_IOS unit, in order to move the mainWindow variable (the main ViewController) from the Implementation section to the Interface section and get it visible to the rest of the world.
    Apart from this (I hate hacking code that will be overwritten next time I'll get an update), the thing ran smoothly on a IOS 5.1 iPhone, and on a IOS 5.01 iPad 2.
    On the IPad I had problems in associating the imagePicker to the mainWindow, because when selecting pics from the device album on iPad, you are forced to put the picker in a PopOverController. I'll hack into this later, but it looks a bit complicated.
    No problems in using the camera. My app will come out as advertised, and my beloved butt is safe. :)
    Thank you so much!!

  4. Oops.. I almost forgot...
    Honestly, I still haven't understood why the mainwindow var is not in the interface section. Changing its location didn't affect any other behavior so it should be safely done.
    Would you please pass my hint to the R&D team, so I won't have to hack FMX_Platform_IOS over and over every time I Install an update?

    Thx again

  5. Woah this website can be spectacular i love learning your content regularly. Keep up to date the great paintings! You recognize, loads of men and women feel the need all over because of this facts, you are able to support these individuals tremendously.

  6. It is actually in point of fact an incredible and also beneficial part of data. We are thankful that you simply embraced this helpful information and facts about. Make sure you stop us knowledgeable like this. Many thanks sharing.

  7. Can I just say what a comfort to discover a individual which really understands
    what they are discussing online. You surely recognize how to bring an matter to light
    and make it significant. More and more persons must read this and
    understand this side of the story. I was surprised you�re not more
    popular since we definitely possess the gift.