iphone

How to get search results in XML format

Hi, I am planning to make an iPhone search app. the user types in the search string. the string will be searched by some search engines like Google, Live, Yahoo ... I need to get the search result in the XML format. Is there any way to do this. Help needed. Please. Thanks and regards, Shibin ...

How to display multiple column on UITableView?

Hello, I want to display multiple column on UITableView. For Example: TableView FName LName Age ----- ----- --- Abby Michale 34 Thanks in advanced Annpurna ...

NSKeyedUnarchiver - Bad access

Hi I was trying to archive an object into a plist file and load it later to fill a tableView. It seems that the file gets archived correctly but I get a bad access when trying to get the value out of the file. Am I doing something wrong? This is where I save it // Create some phonebook entries and store in array NSMutableArray *book ...

Reordering items in mobilesafari

After searching around i still have no clue about the best practice to reorder a set of items in mobile safari. I'm currently using, in the desktop version of my webapplication, jQuery sortable function applied to a set of table rows, with an ajax callback to update items positioning. What would be the best way of doing this in mobile ...

nsdictionary objectforkey - search and get that value

I'm using NSDictionary in my iphone app. I am using "objectForKey:" method to get the value of a key. One thread (first thread) is adding key-value to a dictionary and other thread (second thread) is reading them. In second thread, i want to get a value for a key which first thread some times didn't add by that time. So, in 2nd thread i ...

Is there an easy way to merge Localizable.strings files?

Problem: Using genstrings to create Localizable.strings files from a project. A few weeks later, some things changed and I run genstrings again. 75% of the new file is already in the old file. How could I merge the new file with the old file, so that the old file contains all of those 25% new key-value-pairs? ...

iPhone OS:How set control custom states using UIControlStateApplication

Hi, In UIControlSate enum, there is 16 bits that can be used for custom control states. The problem is that UIControlState of a control is readonly. Is there a way to set the state of UIControl indirectly? I need this information, because I want to set different background images to my UIButton for custom states... Thanks for help ...

iphone sdk: initialization of a AVAudioRecorder returns nil

Hi there, I want to initialize a AVAudioRecorder with the aac Format. To do so, I use the following code: soundFilePath = [soundFilePath stringByAppendingPathExtension:@"aac"];NSURL *url = [NSURL fileURLWithPath:soundFilePath isDirectory:FALSE]; NSMutableDictionary *recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting s...

Is there an guide how to use Localization Manager?

I found this application which was recommended by some iPhone developers: link text They say it really rocks. But: I wasn't able to: 1) Figure out which file(s) I have to download 2) How to use it. It seems to lack of any documentation or short "how to". Maybe someone knows a blog post that shows how to install and use that tool? ...

How to remove segmentedcontroller from uinavigationcontroller after view pops?

I'm building a segmented control within my viewDidLoad method, like so: NSArray *tabitems = [NSArray arrayWithObjects:@"ONE", @"TWO", nil]; UISegmentedControl *tabs = [[UISegmentedControl alloc] initWithItems:tabitems]; tabs.segmentedControlStyle = UISegmentedControlStyleBar; tabs.frame = CGRectMake(185.0, 7.0, 130.0, 30.0); tabs.select...

How can we set time delay in animation of images to make them appear smooth ?

Hi, I have 10 CCSprite images. They are continues images. I am using, CCSprite *playerH = [CCSprite spriteWithFile:@"Player_01.png" ]; playerH.position = ccp(playerH.contentSize.width/2, windowSize.height/2); [self addChild:playerH z:1]; CCAnimation* animation = [CCAnimation animationWithName:@"dance" delay:0.20f]; for( int i = ...

TouchXML to read in twitter feed for iphone app

Hello there, So I've managed to get the feed from twitter and am attempting to parse it... I only require the following fields from the feed: name, description, time_zone and created_at I am successfully pulling out name and description.. however time_zone and created_at always are nil... The following is the code... Anyone see why th...

How to setup a CMS as a backend for iPhone app

I would like my iPhone app to get dynamic content off the net. This content should be managed using a CMS. I would like to know in particular if I can setup Drupal or Joomla or other CMS as a backend for my iphone app to get the content. Any advice on how this can be achieved would be helpful. I am completely new to setting up/using CM...

Which sqlite3 library to use for iPhone 3 development

I'm new to iPhone dev and am using sqlite3 but there seem to be two different sqlite libraries available: libsqlite3.0.dylib and libsqlite3.dylib Which is the best to use? What's the difference? Any help appreciated. ...

Testing an iphone web app on windows

When developing web apps for the iphone on a mac you can test your app in either Iphoney or the apple supplied simulator; bot of them are excellent for the task but are only available for macs. So I have to ask, are windows alternative for these iphone simulators? So far I could only find this one. ...

Objective-C : Fowler–Noll–Vo (FNV) Hash implementation

Hi ! I have a HTTP connector in my iPhone project and queries must have a parameter set from the username using the Fowler–Noll–Vo (FNV) Hash. I have a Java implementation working at this time, this is the code : long fnv_prime = 0x811C9DC5; long hash = 0; for(int i = 0; i < str.length(); i++) { hash *= fnv_prime; hash ^= str...

RegexKitLite & Unrecognized Selector Sent to Instance Error..

Hi Guys, I am not sure why the following line: addDetails.Address = [addDetails.Address stringByReplacingOccurrencesOfRegex:@" +" withString:@" "]; causes an "Unrecognized Selector Sent to Instance" error, closing my iPhone App in my Simulator(XCode). What's wrong with my code? ...

XCode: Capturing swipe gesture and creating a moving object

Newbie in XCode & IPhone development. I'm trying to create a game, where throwing an object (using a swipe gesture) will move the object to the direction requested and will continue with momentum until the border of the view. Anyone has some code snippets (or links) I can look into for examples? Thanks. ...

Help with a loop to return UIImage from possible matches

I am parsing a list of locations and would like to return a UIImage with a flag based on these locations. I have a string with the location. This can be many different locations and I would like to search this string for possible matches in an NSArray, and when there's a match, it should find the appropriate filename in an NSDictionary....

iphone app Form validation

Hi how can I validate email address, username, fullname and date of birth for my registration form inside an iphone application. ...