iphone

iPhone: Rotating UIView - willRotateToInterfaceOrientation not being called (new post)

Hello everyone, I'm trying to autorotate a view and I have the same problem explained here: willRotateToInterfaceOrientation not being called. Even though I implemented shouldAutorotateToInterfaceOrientation and returned YES, in every UIViewController subclass I implemented; willRotateToInterfaceOrientation is not beign called. Perhap...

NSMutabledata. Why is the retain count 1 higher that I would have expected?

I am trying to floss daily, get my exercise, and make sure I maintain a balance between my retains and releases. Here is what has me puzzled. I have a ivar: NSMutabledata *_alignmentData and a synthesized property associated with it: // .h file @property (nonatomic, retain) NSMutableData *alignmentData; // .m file @synthesize align...

Turn on a little engine with the iPhone

Hi: I want to turn on a little engine with the iphone I mean, using the 30-pin cable and connecting some cables to the engine. Which is the code I have to write to do that? And the most important, is that possible or is just a dream? ...

Combining Audio Files as One Properly on iPhone with NSData

I am using AVAudioRecorder to save an audio file every 15 seconds by stopping the recording appending that data to the previously recorder file using a NSMutableData object and using the appendData method. I then record again in the same method so the recording is "continuous". The problem is as soon as you do [recorder stop] it saves...

updating iPhone view without user input

Writing a 4-player iPhone game app with programmable mix of human/autoComputer players. After each player turn the "game view" should update. I have been using "setNeedsDisplay" to update this view. However, this view updates only when my "turn processing" code is "finished" AND it awaits a human player's touch to trigger this code ag...

UITableViewCell superscripts & subscripts

Is it possible to display subscript or superscript text in a UITableViewCell without making custom cells? ...

AVAudioPlayer Output to Speaker Problem

After searching around for how to send AVAudioPlayer output to the iPhone's speaker, I found this: http://stackoverflow.com/questions/1064846/iphone-audio-playback-force-through-internal-speaker Despite setting the category correctly to AVAudioSessionCategoryPlayAndRecord, this solution doesn't seem to be working for me and won't even ...

iPhone Navigation-Based application - some global toolbar questions

Hi, I started iPhone development two months ago, so I can't call myself "expert" ;-) But I learned a lot in these two months, a lot here from stackoverflow :) I'm working on an iPhone app which is based on the "Navigation-Based application" app template. My RootViewController is, of course, an UITableView. From that TableView, I can na...

Unable to assemble multipart/form-data request

Hi community! I'm trying to implement file upload functionality in the iPhone app. Server code is tested and works when files are uploaded from the desktop browser, so I moved to implementing the Objective-C client code. I'm assembling HTTP requests body manually, and despite that it looks correct, it is rejected by the server (server h...

Group of sections not consistent when using NSFetchedResultsController

I am working with a NSFetchedResultsController whose fetchRequest has a predicate. However, it seems that the query doesn't give me consistent groupings each time I execute it. I've set the 'sectionNameKeyPath' for the NSFetchedResultsController and I get a different number of sections returned based on whether I have been working with ...

Help with Adding AdMob ads to a UITableView (iPhone)

Hi guys, I am trying to add an AdMob ad to a table view. I would like it to show up in every 10th cell. (Eg. like how it is in the Free version of the Reddit App if you have it). I tried to follow the AdMob documentation but I didn't have any luck and I'm sure there is something I am missing. Could anyone shine some light on a simple ...

iphone multiple NSTimer troubles

Hi, I'm still new to programming so excuse me if this is silly. I'm programming a simple game and require multiple timers to send different messages at different intervals, so when creating the game, the following is called: [self gameTimerValidate]; [self scoreTimerValidate]; - (void) gameTimerValidate { gameTimer = [NSTimer scheduled...

How to link an arm .o file into an Xcode project

I have a gnu built object file I need to include in an Xcode iPhone project. The .o file format is arm, via 'otool -h': Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags 0xfeedface 12 0 0x00 1 3 1316 0x00002000 But Xcode rejects it, complaining that "file is not ...

Using a secure web service from iPhone with SOAP

I'm trying to get secure web service connectivity on the iPhone over https via SOAP. Currently have http working with NSMutableURLRequest but it doesn't appear to support https. Any ideas what to use to get the secure web service access and processing I'm after? Any help appreciated // :) ...

Retaining state of a user variable in Cocoa

What is the proper way to define a user input variable so it maintains its value after control is returned to the user. I have a TextView where the user enter a description, and I want to clear the contents of the TextView but maintain what the user first entered. ...

Page Scroll View Help, different views controllers each page??

Ok, so I am trying to a pagescrollView with two views each with a different view controller so I can work on each different view. I got apple's sample code and it seems that they created a lot of different view "lazily as they said" how can this code be altered so that I can have the first page be one view controller and the second page ...

Iphone Loading another UIView to the active Window

Hello, if i have got 1 Window and in the interface builder i add a second view, then in the Main Interface Builder Window I see 2 Views which are both called "View". How do I add one of this views programmatically to the m and the h file, and what do i have to edit in the interface builder so that i can run the second generated view (how...

Digital picture processing on iPhone

Hi, I want to write application on iPhone which will: make some digital processing on video from iPhone camera (in real time) send some graphics through TV-Out Could You tell me if this above is possible on iPhone 3G or 3GS? Can I have access to each pixel in video capturing via iPhone camera? ...

iPhone - check if internet connectivity is available or not

Hi I am using the following code to find out whether internet connectivity is present or not. struct sockaddr_in zeroAddress; bzero(&zeroAddress, sizeof(zeroAddress)); zeroAddress.sin_len = sizeof(zeroAddress); zeroAddress.sin_family = AF_INET; // Recover reachability flags SCNetworkReachabilityRef defaultRouteReachability = SCNetw...

How can I change the "Loading Movie..." message in MPMoviePlayerController?

When I launch an instance of MPMoviePlayerController for a remote URL, the top bar displays "Loading Movie..." - is there a way to change this message to a custom one? ...