iphone

UITableView and UIDatePicker are not autorotating?

UITableview | Row(1)...........................Row(0) | | | | UIDatepicker UITabelview Now I set autoresizingMask for UITabelv...

Exception: unrecognized selector ... when trying to push a view controller on Navigation stack

Hi, I am trying to push a view controller on the navigation stack with following code in my buttonPressed method -(IBAction) viewButtonPressed:(id)sender { PersonDetailViewController *personDetailViewController = [[PersonDetailViewController alloc] initWithNibName:@"PersonDetailViewController" bundle:nil]; [self.navigationController pu...

Where can I find a good iPhone autorotation tutorial?

Can you guide me to where to find the best tutorial for autorotation for iPhone? ...

Change server without recompiling iPhone application ,how ?

Hello all , I am developing an iPhone application in which I am fetching data from a web service currently located on a local server in LAN. Now I am fetching my data located on a local server with url something like this : http:\192.168.0.150\service\service.asmx\dataFetchingMethod But In future if my url changes i.e server somethin...

iPhone Mapkit Annotation Issue

I have a mapkit control that is supposed to add annotations for multiple salons. Everything works fine, it returns the latitude and longitude for each one, but when it adds the annotation, it puts both pins at the last set of coordinates. here is a snapshot of my logs, showing there are 2 sets of coordinates: "all done!" "there are 2 s...

Reuse NSURLConnection objects?

I've got an app that will be doing a fair amount of communication with a server over HTTP, and these connections may be overlapping. I'm planning to load the data asynchronously. I understand that there is a performance hit associated with allocating memory, so I figured the smart thing to do would be to keep a set of available connect...

iPhone: "error: ABPerson.h: No such file or directory"... How to use the ABPerson class?

I'm trying to use the ABPerson object. The documentation tells me to include ABPerson.h. Here is basically my code: #import "ABPerson.h" [...] -(void) updateImageWithContact:(ABPerson)contact; The problem is that I get an error: error: ABPerson.h: No such file or directory I did include Addressbook.framework so I don't know what's...

Choose specific localization on an iPhone app

How can I let the user choose a specific localization in my app? I have a book and I'd like the users to be able to read all the different translations of it. ...

Update UIViewControllers after switching of the tabbar selection

I have two view controllers in a tabbar which can both edit data. Therefore, I need to call a reload_data function whenever the user makes a switch on the tabbar. How can I catch the switch or the appearance of the viewcontroller. Somehow viewDidAppear is not called on a tabbar switch. And I do not want to use the tabbarController delega...

Certain JSON requests crach on adHoc, but not on debug

Hi guys, I am using json-framework for communication purposes with certain web service. So far it has served me well. However, this code crashes my adHoc app on the device. The same app in debug mode on the device works ok. Here is my JSON request(that is where it crashes): //Make values dictionary NSMutableDictionary *valuesDictionar...

iphone default SDK preferences

I Keep building projects and then have to do a find and replace for the automatically commented out copy right information in each page. It gets my name right but then it's puts my day job in as the company at the top of each page. It's annoying and also a point where my day job employer could claim rights to my off time work. How do I c...

API for Voice recognition in among group

Hi, Any API for this or any Help, plz tell me. (I am thinking about this is through interaction to the server where will be the voice recognition parser or API etc..) I am working on a iphone application in which i have to implement the voice recognition as : four member will store their liking words(by speaking) one bye one in iphone....

how to implement chat application for iphone?

I want to implement chat application for iphone.but dont know how to start this applicaton can u advice me for that? ...

Why is UIImage's drawAtPoint throwing an error in this code?

Hey Guys, I am creating custom cell in my iphone aap and I am also adding an image to it but I continue to get error at [image drawatpoint:p]; the error states *** -[UIImage drawAtPoint:]: message sent to deallocated instance 0x45cb1f0 my code is -(void)setImage:(UIImage *)i { //[image release]; image = i; [self setNeedsD...

Why is my if statement not firing?

I have the following Objective-c Function - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger section = [indexPath section]; NSUInteger row = [indexPath row]; NSString *key = [keys objectAtIndex:section]; NSArray *nameSection = [mysearchdata objectForKey:key]; static...

is there an objective-c "equivalent" to ruby's send method?

I'm not sure this is possible, but in ruby, you can dynamically call a method using send e.g. if I want to invoke the bar method for the object, foo, I can use foo.send("bar") Is there any way of doing something similar using objective-c? tks! ...

iPhone Switch views _KILL ! Problem

hi guys ... i have a problem with switch view between 2 views with nib files ! here my code . my first page goes to page 2 ! but at page 2 i cant back to first page ! my app go out .. here is my code : from page 1 to 2 : #import "HafezViewController.h" #import "GhazaliateHafez.h" -(IBAction)gh:(id)sender { HafezViewController...

Possible to open iPhone Safari and target a specific window?

I have an app that uses OAuth to authenticate, which means the user must be directed to the website to authorize the application. I prefer to make it obvious to the user that they are using a standard browser to authorize at the original site rather than just using a web view to show the content within my app. However, every time they ...

How do you UNhighlight a tab in the tab bar

I have an app that has a tabbar at the bottom. When I select a tab the press is caught by: didSelectItem:(UITabBarItem *)item So, everything works great except that the tab stays blue until I hit another tab which stays blue until I hit another tab, etc.... is there some code I can put in my switch/case code that turns the blue high...

Why is AVAudioRecorder prepareToRecord Failing?

I am trying to setup a basic controller that will record user audio input(voice). However, the AVAudioRecorder's prepareToRecord method is failing and I can't figure out why. I have setup the audio session in my app delegate and I do not receive an errors when I instantiate the AVAudioRecorder instance: // App delegate snippet AVAudio...