I am honestly not able to figure out when to releas these objects, Please help
+ (DrawData*) load {
DrawData *newDrawData = [[DrawData alloc] init];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *doc...
How do I determine what the view structure on my iPhone program while running on the simulator?
...
looking for a tutorial, uitableview with each cell opening into a new xibs.
...
Not immediately seeing where to download legacy versions of the iphone SDKs. I can get the latest 3.1.3 release and 3.2 betas off the Apple developer site, but a lot of example code I'm finding online was written for 2.0-2.2 and it is still relevant code, but I can't build them because I don't have the 2.0-2.2 SDK. Thanks!
...
I would like to begin work on an iPhone app that does little more than display a books content for reading. The book content is available online, and is fully open source, but I would like to make the content available locally. With apps that I have worked on previously, namely with iPhone OS 2.X, creating (or finding) an .sql database a...
Hi.
I'm trying to create an application in interface builder, and I'm having a problem. What I want is to create a screen with an image, together with a sectionIndexTitlesForTableView bar.
When the sectionIndexTitlesForTableView bar is touched, I want the image to disappear (and never reappear again), and to jump directly to the select...
I was wondering how I can use the Amazon Search API in my iPhone app code.
I've looked around and can't really find any good usage examples.
My idea would be the lookup of a certain, specific Amazon product and the ability to let the user buy that item.
Thanks.
Any help would be great!
Update: I didn't mean ordering. I just mean the ...
Can anyone point me in the right direction on how I would minimize ambient noise while recording someone speaking using the iPhone SDK Core Audio? I'm guessing a band-pass filter that eliminates any frequencies above and below the human vocal range might work. I have no idea how I would implement band filters on audio in the SDK though. ...
I want to get the maximum and minimum values of a NSMutableArray so I can create a core-plot plotspace and graph based around those max and min values.
My code is as follows:
NSMutableArray *contentArray = [NSMutableArray arrayWithCapacity:100];
NSUInteger i;
for (i=0; i<60; i++){
id x = [NSNumber numberWithFloat:i*0.05];
id y = [NSNum...
Every time the camera of the iPhone captures a new image, I want to modify it and then display it on the iPhone screen. In other way: how to modify in real time the video stream from the iPhone camera?
I need a method who is called every time when a new image comes from the camera.
Thanks for your help! :-)
EDIT: what I want to do is l...
How can you disallow some nubers from being chosen with the arc4random function?
Current code:
int random = (arc4random() % 92);
(numbers from 0 to 92)
I want it do disallow the following numbers: 31, 70, 91, 92
Thank you (:
...
Hey all,
i display an activityindicator like
CGRect frame = CGRectMake(0.0, 0.0, 25.0, 25.0);
loading = [[UIActivityIndicatorView alloc] initWithFrame:frame];
[loading startAnimating];
[loading sizeToFit];
loading.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin |
UIViewAutoresizingFlexibleRightM...
I'm having trouble getting components added through the Interface Builder to work on the iPhone. It works perfectly in the simulator, but not on the device. When debugging I found that the events are handled on exit, instead of when i actually press the button. Anyone else run into this issue?
edit: after some investigation, it turns ou...
I just started getting into iPhone development. I have been mish-mashing tutorials and material from books in order to get my bearings straight. I come from a PHP and Java background... Objective-C is a bit quirky. But, I learn best by getting my feet wet.
Basically, I have these actions. getPhoto is bound to a couple of UIBarButtonItem...
I'm making an iPhone app that has information about different video games. How can I implement a shopping API that will allow me to redirect users who choose to buy a game?
In other words, I'm looking for some kind of affiliate program API that works with the iPhone and lets me place item buy buttons that redirect the user to a product ...
I would like to make an application very similar to this one but with the zoom in/out functionality:
http://www.metacafe.com/watch/4212791/chrissie_chau_portrait_application_on_iphone/
I already read this thread:
http://stackoverflow.com/questions/1631170/iphone-image-slideshow
And I tried the suggested codes in this site:
http://lieve...
I have a weird behaviour that has only shown up in the last week. I don't use IB, all the controls are created in code.
I have a text field with a keyboard active. The first time I load the text field and use the keyboard, everything works normally. The second time I use it, the typed text does not show in the text field. However, the t...
Hey guys,
I found out that I couldn't do it but just to make sure, would it be possible to disable one of the button of my segmentedcontrol without re-creating the whole thing ?
Exemple:
[self.navigationItem.rightBarButtonItem.accessToMySegmentedControl
setEnabled:NO ...];
Cheers mates,
Gauthier
...
I see a lot of objective-c code that just #defines local constants it needs, and then proceeds on its merry way. The problem is that, as far as I know, #defines aren't scoped. Many of this is in Apple's own example code. For example, in the TableViewSuite example 5, the drawRect function in TimeZoneView.m contains the following block:...
Cannot find executable for CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded)
Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded)
That's the error I get when I try t...