iphone

The dealloc method is not called in the present modal view contrller.

It is in My view controller -(void)doctorsListAction { if(isFirst == YES) { [self getDoctorsListController]; [[self navigationController] presentModalViewController:doctorListViewNavigationController animated:YES]; [doctorListViewController release]; } } -(void)getDoctorsListController { //Docto...

How to hide the dismissModalViewController in iphone?

I am new to iphone development.I am using UIImagePickerController to access the photo library of the device.When the image is selected it navigates to another view.At the same time i am dismissing the picker controller and navigating to the another view.I want to hide the dismissing of picker controller so it should look like ,after clic...

Unable to find CFNetwork in Xcode

Hello, I am trying to use CFNetwork in my app so I tried adding CFNetwork.framework from the Edit Target dialog in Xcode. The interesting thing is that CFNetwork is not visible in the dialog box at all. Am I missing anything? Do I have to add/install CFNetwork in some other way? Screenshot - Thanks in advance. ...

Iphone SDK: pathFoResource:Nsstring problem -> playin MP3 files

I am trying to get 10 mp3 files in the resources folder and play them when a button is pressed. I have entered name of the mp3 files in a NSMutableArray and read each one after the button is pressed. The problem is that pathForResource: is not working (returns nil). If i use the file name explicitly -like pathFoResource:@"song1.mp3" ofT...

sync image from itunes to iphone simulator

hi i want to know how i sync image from itunes to iphone simulator. Thanks ...

iPhone - How do I find the MAC address of the connected WiFi access point?

Without using the private APIs, is it possible to programatically determine the MAC address of the access point that the iPhone is connected to? I understand that this should be doable using the core BSD libraries, but we are new to this, so it would be great if someone can point us to some starter code. Note: we're trying to determine...

Edit, select value from UITableView on the iPhone

I have a UITableView with a list of names, representing server configurations. I want the user to be able to select a server configuration, add a server config, edit a server config, or just cancel out of the view and return to the main view. I'm having a hard time trying to figure out how to achieve all of that functionality in this vie...

iphone: unrecognized selector sent to instance

I am new to objective C, So maybe there is some basic thing that I am missing about selectors. I would like to understand the basic concept behind this error as I have not found an general error reference. I am getting this error when using: [CloseButton addTarget:PageContents action:@selector(CloseButtonPressed) forControlEvents:UICon...

Make UIImageView change its contents when user rotates the iPhone

So I have an app with a tab bar, each bar contains a UINavigationController. When user shakes the device, a UIImageView appears as a subview of the nav controller. But the app has a landscape view as well. If the UIImageView is active in portrait mode and user rotates the device, this code works: - (void)willAnimateRotationToInterfaceOr...

UITableViewCell with selectable/copyable text that also detects URLs on the iPhone

Hi guys, I have a problem. Part of my app requires text to be shown in a table. The text needs to be selectable/copyable (but not editable) and any URLs within the text need to be highlighted and and when tapped allow me to take that URL and open my embedded browser. I have seen a couple of solutions that solve one of either of these p...

how to split a tableview cell into two?

I like to create a cell like contacts's add instant messages table view, with two cells to select: "AIM" and "home". May be I can use the custom table cell as the cell's content view, but the table view framework always treats one table view' cell as a whole, for example ,how to respond to did select row at index path message? Thanks ...

iPhone native app + payment gateway

Hello, I want to implement payment gateway for iPhone native app. I have read in few of the sites that I can integrate apple payment gateway for this through In App Purchase. But if I want to do through In App Purchase then, I have register each of my product with AppStore and set a price margin for each. Rather I am building someth...

iPhone - Server file transfer

What is the best way to have an iPhone read from / write to files on a local network? ...

basics of NSInvocation?

hi, i am new to NSInvocation, what it means?what is the advantage of it?can any one say cllearly from Beginning? ...

retaining when returning?

Should I be retaining the responseData that I am returning // METHOD -(NSData *)dataFromTurbine:(NSString *)pathToURL { NSURL *url = [[NSURL alloc] initWithString:pathToURL]; NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url]; NSHTTPURLResponse *response = nil; NSError *error = nil; NSData *responseData ...

iPhone UIButton - image position

Hello! I have a UIButton with text "Explore the app" and image (>) In Interface Builder it looks like: [ (>) Explore the app ] But I need to place this image AFTER the text: [ Explore the app (>) ] How can I move the image to the right? ...

Switch from a View (Login) to another View with a TabBarController

Hi, i'm new at Iphone SDK Developing and now i need some help. I have a LoginView where the User have to authentificate his legitimacy. After he enter his Username and Passwort he click on the "Sign In" Button. Then i want to load my "Real-App". Here is the Problem because i can't switch from the LoginScreen to the TabBarController. I ...

How to bind dynamic NSNumber Object to SQLite query?

hi guys, I'm wondering how to bind an NSNumber object into a sqlite3 query: const char *sql = "select name from myTable where section_id=1 order by name ASC"; I have a NSNumber object called 'nmbr' and want to assign its value to the section id.. Thomas ...

Create Managed Object Model From Existing XSD - iPhone Core Data

I have several existing XML schema files with a defined data model. I would now like to incorporate the exact data model in an iPhone app, using Core Data for persistence. Does anyone know if there is a way to create a Managed Object Model other than by using the graphical tool in Xcode? It would take me a long long time to have to go th...

MFMailComposeViewController: how to get notified when view appears?

In my app, users can take a picture with the camera or pick one from the library and email it as an attachment. I use the MFMailComposeViewController for seamless email. On my iPhone 3GS, it takes about 5-7 seconds for the email view to appear with the attachment. Now I want to show a progress indicator view when the user pushes the "...