I am creating an app in which, as soon as the uiimagepickercontroller loads (i.e. the camera view), it should start taking pictures without any click and store images in an array. How can I do this without clicking on the "shoot" button?
In reference library, uiimagepickercontroller contains an instance method, takepicture. Can somebody...
Hi
Is it possible to get the cell network time using public or private API?
...
Does anybody know if the iPhone maintains a cache of previously used font characters?
Recently, while trying to uncover a memory leak near a UITextField controler, I've noticed that the leaks are almost (95%) gone whenever I start writing text that uses only characters from previous attempts.
What seems to happen is that for every d...
I wrote a small software synth for the iPhone.
To further tune performance I measured my application with Shark and found that I am loosing a lot of time in float/SInt16 conversions.
So I rewrote some parts to get around the conversions by pre-calculating lookup tables that return "ready-to-use" SInt16 samples. This works fine so far.
C...
Is there some convention I need to follow to avoid this?
I thought maybe I needed to move the frame declarations out of my init functions.
I thought I could also perhaps avoid this by rendering a transparent overlay until the screen has finished loading, and then remove it. But that seems like a hack.
...
I have been unable to find the answer for this issue I am having.
I have a UIImageView inside a UIScrollView, and I would like the center its content vertically.
Right now, the only way I have been able to do this is by setting the scroll view's contentInset based on the height of the UIImageView size, but this is not a perfect soluti...
I've been asked to make a small quiz/survey application for a conference. The application will be loaded onto 30 to 50 iPhones, which will be distributed throughout the venue for the duration of the conference. The application will log all of the data collected by the quiz. I need to figure out a simple and fail-safe way to collect all o...
Ok i am also one of those who are trying to make their first game esp for Iphone but i have no clue from where to start. I never work on such application before (graphics stuff). It's totally different paradigm for me.
I google around, and came to know that opengl will be required, then it cam out there is something called cocos2d-iphon...
To understand my question please go through following.
In my application user first taps on a button.
Image picker controller is displayed
user selects images / an image from it.
all that images must be saved to my iphone application.
I have already implemented this. & for doing this i have implemented following code.
-(IBAction)set...
I'm wondering if anyone has insight into this... when releasing an update of an iPhone application, should I expect the approval process to take longer if I submit something that's declared as a major version update (as compared to a minor version)?
Last time around (about the time the big Facebook-update was released) our wait time for...
Hi,
I am looking for an efficient way to handle the image/frame detection from touch methods. Let's say i am building a keyboard or similar to this. I have 'n' number of images placed on the UI. When someone touches an alphabet (which is an image), i can do the following to detect the corresponding letter
1) CGRectIntersectsRect(..,.....
I am looking for the Flickr multithreaded example application that is used in lecture 10 "Performance and Threading". He does a few things that I would like to look at. The particular files I'm looking for are ImageLoadingOperation.h and MyTableViewController.m? Does anybody know if they exist somewhere out there and I just missed it? If...
I have setup two timers in my application which both repeats every a few seconds.
Everything works fine except when is time to invalidate the timers.
When the phone is locked, I want to invalidate those timers and then recreate them when the phone is unlocked.
Im using the notifications to realize when to invalidate/create the timers.
...
I'd like to be able to use ctags to browse the apple iphone sdk docsets with vim. Is there a way to generate a ctags file that links to the docsets in question?
I use Objective-C to program for the iPhone, so I ended up using Objective-C Ctags, and changed my commandline to be:
ctags -f iPhone.tags -R --langmap="ObjC:.m .h" --fields=+...
For iphone game development. How do most people retain state? Using sqlite? or some kind of file.
The game is a RPG type game.
...
Hello community,
I have a couple of UIButtons in the view which "floats" above UIScrollView (i.e. scrolling of the UIScrollView does not influence the buttons' position on the screen). My application logic sometimes requre hiding one of those buttons, and when it happens the UIScrollView could not be scrolled bu dragging from the point ...
I'm trying to save and restore cgcontext to avoid doing heavy drawing computations for a second time and I'm getting the error : CGGStackRestore: gstack underflow. What am I doing wrong? What is the correct way to do this?
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
if (initialized) {
...
For the purposes of this, I'm going to pretend the original url is http://host/form and the new url is https://host/form. (Note that before I ship this, both URLs are going to be secure. However, the nonsecure-to-secure seems like a convenient redirect to test this on.)
I'm accessing a web API using NSURLConnection that redirects me. Ba...
I have a UIScrollView with paging in it (so the typical model with a UIPageControl and dragging/flicking left and right between pages), and I've got that working fine. The weird thing is that when I wanted to get rid of bouncing (so that you can't see black behind the UI on the left and right sides), suddenly paging no longer works.
In ...
HI. I have used UIScrollView before, and am using it now, and never had a problem. I'm now adding it to an old app, and while it works as expected (I can look at the contents, scroll around with my finger, all the bounds and sizes are setup right so there is no empty space in the content, etc.), I just can't get scrollToRectVisible to ...