iphone

iPhone Development - Query related records using CoreData

I have a case where i have three entities with one-to-many and one-to-many relationships: Entity A (Entity B relationhip), Entity B (Entity A relationship, Entity C relationship), Entity C (Entity B relationhip) I have the reference of Entity A, and now i want to fetch all the related Entity C records. How can i do that? (with least ...

Implementing VOIP in iphone

I am new to iphone development. I want to develop an VOIP application. Anybody give me some ideas to start.I have tried "siphon" and "telephone" open source projects but they did not run. Thanx for any suggestion. ...

integrate a view into another view in iphone

Good Day! i want to add a subview in another view in iphone. and i want that child view to be of size which i want like if i want to change its height/width i can. Can somebody please suggest me something or help me out in this regard. Thanks in advance ...

Email from an app, but not use a a pop up controller, just text inside a text box.

Hey is there any way to send whats in a text view (im trying to make a suggestion box) to my email address? example user types in the box " I think you should add twitter support" then that is sent in the background to my email address [email protected] then a message is popped up on the screen saying "suggestion sent" just an exampl...

How to generate an NSURLRequest to download a file from a WebDAV server like MobileME

Should I mention [request setHTTPMethod:@"GET"] ? and what should I enter in the [request setHTTPBody: ?] ? OR should I just leave it empty? Please help. Thanks in advance. ...

[SOLVED] How to create a FBO with stencil buffer in OpenGL ES 2.0?

I need stencil buffer on 3GS to render planar shadow, and polygon offset won't work prefect, still has z-fighting problem. So I use stencil buffer to make the shadow correct, it works on win32 gles2 emulator, but not on iPhone. After I added a post effect to the whole scene. The stencil buffer won't work even on win32 gles2 emulator. An...

Capture Video in iPhone

Hi, I used the following code to record video. UIImagePickerController *m_objpicker;=[[UIImagePickerController alloc] init]; m_objpicker.sourceType = UIImagePickerControllerSourceTypeCamera; m_objpicker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie]; // hide the camera controls //picker...

What is the difference between these two different lines of Objective-C, and why does one work and not the other?

If I try and release tempSeedsArray after seedsArray = tempSeedsArray , I get an EXEC_BAD_ACCESS, and Instruments shows that tempSeedsArray has been released twice. Here is my viewWillAppear method: - (void)viewWillAppear:(BOOL)animated { NSString *arrayFilePath = [[NSBundle mainBundle] pathForResource:@"SeedsArray" ofType:@"pli...

stop execution of process for miliseconds.

hi friends, I m creating a Tic tac toe game, in that after click made by user automatically the cpu will respond. I want the cpu response after 0.50 seconds, the sleep() function takes too many time, i don't want that much time, is there any other way to do so??? ...

Decrypt file with public key

I have encrypted file and public key. How can I decrypt it from app without installing certificates? file public.key looks like "e+ztydr5GG7saZyrIOtSWGQgHlQbuFn1IVlIIggPIWuLUNTOqN0Y..." Here are some code: NSString* filePath = [[NSBundle mainBundle] pathForResource:@"public" ofType:@"key"]; NSData* publicKeyData = [NSData dataWithCo...

Why use NSFetchedResultsController when inserting Core Data objects?

I'm trying to get my head around Core Data on the iphone. This is code from Apple's 'Navigation based app using Core data' template (method - insertNewObject) // Create a new instance of the entity managed by the fetched results controller. NSManagedObjectContext *context = [fetchedResultsController managedObjectContext]; NSEntityDescr...

How to save a value in a plist file in iphone?

I am new to iphone development.I am using the below code to add the value to the plist but when check the plist after executing the code i dont see any value saved in the plist.Where do i go wrong? please help me out.The plist i have created is in the resource folder.Thanks. NSString *path = [[NSBundle mainBundle] bundlePath]; NSString ...

ModalViewController causing another method to be run... WHY?

Hi there.. I have a modalViewController that pops up and displays another view. My problem is that when this happens, another button on my screen is also pressed, and it does that action while the MVC is being shown. I tried a mail message VC, with the same results.. What could it be? Things to check please? Im stumped. ...

Accessing functions in a parent controller

I have made a ViewController in XCode for an iPhone project I'm working on, but I have a question about nested ViewControllers and what the best way to access a parents ViewController functions? Essentially, at the moment I have a SwitchViewController with MenuViewController (nested) and GameViewController (nested, which renders OpenGL ...

shouldAutorotateToInterfaceOrientation called several times in a row without any rotation

I am trying to implement some interface changes in my app, based on the device rotation. My app is a view based app. So, its main view controller has a didload method. The app starts in portrait. Almost all changes on the device orientation triggers the shouldAutorotateToInterfaceOrientation method but this method is not called when th...

Why should I implement all event-handling methods, while handling events in a subclass of UIView?

According to the iPhone Application Programming Guide (Event-Handling chapter) I should implement all event-handling methods (even if it is a null implementation), if I work with UIView or UIViewController. And I shouldn't call the superclass implementation of these methods. Why? (I've searched in the Guide and in Google, but can't find...

MapView Annotation Callout action when opened

Hi, I have a mapview with serveral annotations. Every annotation has a leftCalloutAccessoryView which is a UIViewController class. The reason for this is that I want every annotation to load some data from the server, and add the result of that data to the annotation subTitle. This all works perfectly, except that I dont want to load a...

Suppressing deprecated warnings in Xcode

With all the SDKs floating around, it's handy to be able to build for multiple SDKs and platforms. However, bouncing from 3.2 to 3.0 and even occasionally 2.x, I frequently get deprecated warnings involving methods that have changed or been superseded: warning: 'UIKeyboardBoundsUserInfoKey' is deprecated. Since I still want to maintai...

How to add a view on top of a UIPopoverController

I've got an iPad app with a “drawer” table displayed in a popover. The user can tap-and-hold on an item in the drawer to drag that item out of it and into my main view. That part works fine; unfortunately, the view being dragged appears under the popover, and is too small to be visible until it's dragged out from underneath it. If I add ...

Password authentication in sqlite3 for iphone

Hey Guys .. I am new to programming in Objective C . I checked many tutorials on reading data in sqlite3 , but almost all of them have show the data in UITableView . I have a page where the user types in the password, the password lets say 1234 is saved in the database ( I have created a table already ) . I have got the database into th...