iphone

Why does Facebook Connect for iPhone login dialogue need a time delay?

I'm new to iPhone programming and stumbled upon an answer to a question, but I was hoping someone could tell me why. I'm using Facebook Connect in the app. Since my app requires a login, I was calling the login dialog programmatically rather than with a button. I am using the SDK example approved code: FBLoginDialog* dialog = [[[FBLo...

iPhone file transfer

How do I enable my iPhone application to receive files through the apps tab in iTunes? If you can point me at the proper documentation, that would be great. ...

memory mgmt problem in complex dictionary

I hate asking memory management questions - all the good answers are variations on RTFM. But this one is stumping me. I have a (relatively) complex dictionary in my model class, where each key points to an array of arrays. I constantly add and delete items to it, depending on state. Each "item" is an array. - (void)addToDictionary:(NSN...

FFMpeg for iPhone

I am trying to create an app that will allow me to stream video FROM the iPhone TO a server. my current theory as to how to do this is to create a series of FFMpeg files and send them to the server. as far as i can tell i have compiled the FFMpeg library correctly for the iPhone. i followed these instructions here. a series of executable...

iPhone Application build copies <Prefix_filename>.pch.gch

I large (12 mb) Prefix.pch.gch file is being copied to my final iPhone application. It does not exist in the project and only shows up in the build log. It adds quite a bit to my otherwise small application size. Any suggestions for stopping xcode from copying it? Does anyone know what it is? I did a little research, and it looks like a ...

iphone uitableview grouped by date implementation

Hey guys, I'm very new to iphone development, so you'll have to forgive me. So currently I have a table that displays messages, but I'd like to group the messages by date, e.g. Tuesday 4/5/98 //header message 1 message 2 message 3 Wednesday 4/6/98 message 1 etc. So right now, it's just one long NSMutableArray oldArr (sorte...

Help with CoreData making a NSPredicate - Recursive Searching.

I am using CoreData for an iPhone project and I am stuck trying to build a predicate. My core data entity is Folder parent - Point to the folder class parent, can be null and is one to one. secure - An enum that holds the security type. The problem I have is that I am trying to make it so I don't show any folder that are ...

How to draw a moving laser beam?

I'm looking to draw a laser beam which can possibly bounce around a box. Basically the laser beam is of variable length and when it bounces off a surface it will reflect at the angle that it collides. I can handle the collision stuff myself (probably, haven't tried it yet though), but I'm confused about how the actual drawing would work...

iPhone apps and state aware web connections

I'm working on an interface for an existing web application that will allow iPhone and other mobile clients. I have started implement a JSON API and I need to give some detailed specificaitions for the App to an iPhone developer. What I am curious about is whether other developers are using session data in their JSON / mobile client co...

Anyone know how to make a view that looks like this?

It's an edit screen for a specific item in a table view. Don't know if I'm going to have to make a custom view or not. Feel like I've seen this kind of layout before though...Thanks. http://martyulrich.com/Home/Home_files/help.png ...

iPhone deployment management

I have a little app that I want (potentially) a lot of my clients to test and give feedback on before launch, do I really need to setup a massive list of UUID's in the provisioning profile and build against that certificate, email them the .APP file and the certificate? I was hoping for a, perhaps, private app store? But I cannot seem t...

Separating OpenGL Calls from Updating on the iPhone

I'm a bit of a newb when it comes to threading, so any pointers in the right direction would be a great help. I've got a game with both a fairly heavy update function, and a fairly heavy draw function. I'd assume that the majority of the weight in the draw function is going to happen on the GPU. Because of this, I'd like to start calcula...

Drawing a transparent circle on top of a UIImage - iPhone SDK

I am having a lot of trouble trying to find out how to draw a transparent circle on top of a UIImage within my UIImageView. Google-ing gives me clues, but I still can't find a working example. Are there any examples that anyone knows of that demonstrate this? ...

iPhone Objective-C: If string contains...?

How can I tell if a string contains something? Something like: if([someTextField.text containsString:@"hello"]) { } ...

The use of UIModalTransitionStyleFlipHorizontal causes EXC_BAD_ACCESS

I've got some code that creates and presents a modal view controller. I'd like to use UIModalTransitionStyleFlipHorizontal as the modalTransistionStyle, but when I test the code on an iPhone 3G, it gives me EXC_BAD_ACCESS. Here's my code: UIViewController *controller; switch (self.showWhichView) { case previousView: // do nothi...

iPhone: App crash in MapView after 20 min

I am working on an app that tracks a users location. After about 20 minutes it seems that the app always crashes, and I am not sure why. Device logs show: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x069f6000 Crashed Thread: 0 Thread 0 Crashed: 0 Ride 0x00012e00 -[...

pause Audio recording while displaying iAds in full view?

Hello forum, I am working on iAds and I wanted to ask if it was necessary to stop recording audio on my iphone using AudioQueueObject while the iAdView is displayed in the full view ? Thanx. ...

There is no SDK with the name or path "iphoneos4.0"

Hello All: I download a sample of UICatalog and run it.When I compile it ,it shows the failed message:There is no SDK with the name or path "iphoneos4.0".I find the "Base SDK" of UICatalog's Targets is iphone Device 4.0(missing).How can I solve this question and run it. Thank you! ...

What the meaning of [NSBundle mainBundle] in iPhone?

RootViewController *rvController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:[NSBundle mainBundle]]; sometimes i see it use nil ,i dont know what exactly it use for? ...

Refresh SQL Database

Hello! I use a SQL database in conjunction with my iPhone app. I uploaded it to the iTunes store, everything was working fine and the app was selling. Then, I added some data to the data base and uploaded the new binary to Apple. Apple approved the update. Here is the problem. When I update my app to the new version, the new records...