I have an app that builds a slideshow from user images. They can grab from their library or take a picture. I have found that repeated use of grabbing an image from the library is fine. But repeated use of taking a picture causes erratic behavior. I have been getting crashes but mostly what happens seems to be a reloading of the view ...
Where would I find a list of locale name abbreviations for my project localization folders? (Such as en for English, fr for French).
I am looking to do German, Spanish and others.
...
Hi everyone, I have this piece of code:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
NSLog(@"Manager did update location!!");
self.currentLocation = newLocation.description;
}
I have this code inside a class that conforms to the CLLo...
How can I add a UITableView into my View-Based Application where the user will tap on more than one cell, and it will become selected, exactly like the Clock app's "New Alarm" setting named "Repeat" (Clock>Alarms> + >Repeat), and how can I get all of the selected cells in an array?
...
I am getting the message:
* _NSAutoreleaseNoPool(): Object 0x3f43660 of class UICFFont
autoreleased with no pool in place -
just leaking
I have placed a break point using the symbol _NSAutoreleaseNoPool and the program does break, however, the stack trace does not show me any of my code only some UIView and Core Animation layer...
I need to play a sound of a ball rolling and change the sound based on the ball's speed. I was using AVFoundation and just playing different samples but that didn't sound natural enough. I tried OpenAL and something like:
alSourcef(sourceID, AL_PITCH, thePitch);
and passing in thePitch, but didn't like the results.
Does anyone have a...
POWERVR™ SGX Series5 GPU is embedded in Apple iPhone and I wonder how to utilize it (i.e. use it as low power GP-GPU) from iPhone OS 4.0?
...
Okay, I have searched online and even looked in a couple of books for the answer because I can't understand the apple documentation for the NSTimer. I am trying to implement 2 timers on the same view that each have 3 buttons (START - STOP - RESET).
The first timer counts down from 2 minutes and then beeps.
The second timer counts up...
Hi, I have a few properties defined in my header file like so
@property (assign) bool connectivity_N;
@property (assign) bool isConnected_N;
In my implementation file I have an init and the synthesized properties like so
@implementation Map
@synthesize connectivity_N;
@synthesize isConnected_N;
a init to set the initial values like...
I have sql query statement which used to display the contents in the table.The sql statement consist of a where clause which is to be appended with numeric value as 1 ,2 3 etc depends upon the previously selected content.I am having the numeric value as int and i want it to append to sql statement which is const char.how can i append bot...
In my 'cellForRowAtIndexPath' method for a UITableView delegate, I'm allocating a cell if it doesn't exist, and in this cell, I'm creating a new activity spinner like so:
UIActivityIndicatorView *actView = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray ] autorelease];
I'm using Leaks...
I am having some troubles using the CGContext with an iPhone app. I am trying to draw several lines with different colors, but all the lines always end up having to color, which was used last. I tried several approaches I could think of, but haven't been lucky.
I set up a small sample project to deal with that issue. This is my code, I...
Currently I'm using NSThread to cache images in another thread.
[NSThread detachNewThreadSelector:@selector(cacheImage:) toTarget:self withObject:image];
Alternatively:
[self performSelectorInBackground:@selector(cacheImage:) withObject:image];
Alternatively, I can use an NSOperationQueue
NSInvocationOperation *invOperation = [[N...
How can I check if an NSDate is a specific day of the week, like a Monday, Tuesday, Wednesday, and so on?
...
I have an issue with uiimageviews resizing at run time. On one view I have more than a dozen uiimageviews contained within a uiscrollview. The images are assigned at design time. The uiimageview's are all the same size. The mode is set to Aspect Fill for all uiimageviews. At run time the images appear correctly in the view.
On a ...
Ok guys, so im new to iPhone development, so apologies if this is a silly question, but before i actually create my app i want to know if this is possible, and if Apple will reject this.
(Note this is all theoretical)
So i'd have a API (.NET) that runs on a cloud server somewhere and can return HTML/JSON/XML.
I'll have a website that ...
App freezes, and the device freezes sometime during launching or closing. This happens especially to the app developed and installed using Xcode. Can anyone explain what's going on, if it's iOS 4 Gold Beta specific issue, or a generic task must be handled by a developer?
...
How can you detect whether Safari has been disabled by parental controls on the iPhone? I know it is possible because the App X3Watch refuses to work until Safari is disabled. As far as I can see there is no api for the parental controls, so what technique can be used for this?
...
Hi,
I'm getting the following warning when building an ad hoc distribution copy of a new iPad only application:
[BWARN]warning: building with 'Targeted Device Family' that includes iPad ('2') requires building with the 3.2 or later SDK.
These are my build settings:
Architectures: Optimized (armv6 armv7)
Any iPhone OS Simulator: i386...
Hi all,
I'm trying to use the StoreKit API in OS3.0 for the iphone to do in app purchase. However, I'm getting the following error when trying to purchase something in the SANDBOX ENVIRONMENT.
The item you tried to buy is no longer available [Environment: Sandbox]
Here's the code I use to do the payments:
SKPayment* payment = [SKPaym...