I'm creating an app that will use UIImagePicker to let users pull custom images from their Camera Roll. However, I also would like to include a set of my own images with the app, so that users have the option of using those. I'm wondering if on the first install of my app there's a way to put those default images in their own album insid...
Hello.
I'm relatively new in this things...
In my project, I've got 3 Views(derived from UIView):
1) SplashView (game logo and "Play" button)
2) SelectLevelView (1 to 20 different levels button)
3) GameView (load the selected level in SelectLevelView)
All views are programmed using code (drawRect).
SplashScreenView is loaded with ...
Hi Everybody, I am trying to read an input file (if it exists) and then want to add a string to that input. My code looks as follows.
NSMutableArray *listData = [[NSMutableArray alloc] initWithContentsOfFile:*filepath*];
// listData = null if the input file does not exist.
NSString *jobName = [NSString stringWithFormat:@"My New Job"];
[...
What is the difference between using the following:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *dir = [paths objectAtIndex:0];
NSString *dir2 = paths[0]; // this throws incompatible type exception
...
I'm trying to make physics bodies generated at a random position with a random velocity hit a target. I gleaned and slightly modified this code from the web that was using chipmunk to run in Box2d
+ (CGPoint) calculateShotForTarget:(CGPoint)target from:(CGPoint) launchPos with:(float) velocity
{
float xp = target.x - launchPos.x;
...
Is there a library function/method/class in Cocoa Touch for base64url encoding strings?
...
I want to build a phone app using phonegap that can access data on a mysql server that is backing a cakephp app. Can this be done, if yes then how can use phonegap to access data from a mysql server?
...
I just upgraded my Mac to Snow Leopard, and installed Xcode 3.2.3.
The app I am working on ran perfectly before the upgrade.
Now, the default image appears briefly, then the screen goes black except for the status bar. Same behavior on my iPhone 4 and in the simulator, whether I target iOS 3.2 or 4.
The app is still running and I an s...
I want to apply post-processing to audio from an iPhone user's music library (i.e. the iPod app). This could happen in a number of ways:
Piping the media player's output through an Audio Unit.
Writing a custom audio output device, and having the media player send audio to it.
Getting direct access to the files in the user's music libra...
Before I begin looking into this myself, I wanted to check if anyone had leads on projects that already integrate CoreData into the three20 MVC model.
I didn't find anything when I looked online so just throwing this out there too.
...
So I'm setting an activity indicator as the accessory view on my table view cells when they are selected.
UITableViewCell *cell = [tableVw cellForRowAtIndexPath:indexPath];
UIActivityIndicatorView *act = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[act startAnimating];
[cell setAc...
I built an offline Web app (at www.chirp.com) that caches itself when bookmarked on the desktop. Testing on the iPhone4 in airplane mode shows that the program runs without a network connection (except for Google map access of course). But the mp3 sound files do not play in this mode. Is there a problem with the audio tag when running in...
hi,
There is any way to get cell coordinates when pressing on cell?
I have UITableView and i want to show the activityIndicatorView on the cell that was pressed and for that i need the cell coordinates.
the didSelectRowAtIndexPath method dont provide this information.
one more thing , when i show the activityIndicatorView i want from ...
Can someone please explain to me how I can make a uitableviewcellaccessorydisclosureindicator's background in a UITableViewCell transparent?
Right now I'm facing this problem:
...
I'm not sure if I'm going about this right. All the tutorials I've seen suggest that nearly all the controls, which are views, are handled by their own ViewController. But the Apple docs clearly state that it should be one ViewController per screen, and I have more than one thing going on per screen. If I'm supposed to have multiple View...
What is the best way to use the iphone camera in your app?
I would want to allow the user to take an image, then either retake or save.
Where do the pics get saved to? Can I assign a name to a captured image?
Thanks
...
How is an image that is larger than the iphone view size to a UIScrollView?
I tried to add the image to the UIImageView, still not connected to the UIScrollView and the image just shrunk to fit the UIImageView.
How is this structure set up?
Thanks
...
Can i call a IBaction from this
- (void)runScheduledTask {
}
i wish to call this IBAction:
(IBAction)GetSms {
}
...
I am trying to run a PHP bot function in a Safari extension.
This is the HTML code I've tried to put together, but it's a mess of PHP, cURL, and HTML, and I don't really know what I'm doing.
I've never attempted to use cURL before I got this code from http://www.barattalo.it/2010/08/09/send-push-notification-to-iphone-with-php-and-push...
I am having the following problem with Audio Queue Services, and was hoping it sounded familiar to someone else.
First I execute:
AudioQueueAddPropertyListener(audioQueue, kAudioQueueProperty_IsRunning, MyAudioQueueIsRunningCallback, self);
Then later I execute:
AudioQueueStart(audioQueue, NULL);
Both calls return no errors but MyAu...