iphone

What's best practice for a long running operation that updates data in a currently displaying iphone tableview?

Background: I have a tableview displaying about 8 sections each backed with my own PlaceList class representing a list of objects (the implementation uses an NSMutableArray). There are around 200 objects in total. Each section corresponds to how far away the object is from the current location (e.g. within 1 mile, within 10, 25, 50...et...

How can I make an iPhone app that responds to the OnRing event?

I want to write a iPhone application, it needs to react to the onRing event (or whenever someone calls, regardless of their ring/vibrate settings). Is this possible? Would my application have to be running all the time or can it just run during a ring? (it is a light application, not sure how long it will take to load up though). I bas...

How do I get the groups belonging to a person ABAddressBook

hi, Is there a way to get all groups from the AddressBook belonging to a person without looping through all groups? thanks ...

Override ringer volume in iPhone apps

I have built an app that plays lots of sounds the easy way: AudioServicesPlaySystemSound(someSoundID); When I use the device volume buttons to increase or decrease the volume, the volume I actually change is the phone's ringer volume. So if you decrease it and exit the app then your phone will ring quietly... Is there an easy way to ...

Flex applications for iPhone

Is it possible to make applications for iPhone using Adobe Flex/AIR? Any tutorials, pointers? ...

Is there anything that makes memory management easier for iPhone/iPod Touch application programming?

I've only used Java and Ruby for so long that I'm really not enjoying keeping track of my own memory again. It's not that I can't do it, I can. I just don't want to. Any special tricks, libraries, or anything else you've learned for dealing with memory in iApps, lay it on me here. ...

Compute a checksum on the iPhone from NSData

Using the iPhone SDK, I'm having the user select images from the image picker. If the user selects an image they've selected before, I'd like to make the user aware of it. My initial plan (just to make sure other things work for now) is to save the image to a file (need to do this anyway for other reasons), using a checksum of the NSDat...

Problem in displaying texts in each cell of the UITableView control on iPhone

Hi, I display texts in a cell of the UITableView control. Now the texts that I display can be large enough to fit inside one cell width, so it displays the texts on the second line. But it breaks the word in the middle, (like if say "That sounds great, I will pick you up from the abc station", it will display "That sounds great, I will ...

Should I connect my iPhone app directly to a web service or proxy through my own site?

What's the best approach for using a web service in an iPhone app? Should I connect directly to the service or proxy the request through my own web server and where I can cache the results and, if the service changes, make any updates in a single location without having to have my app update approved by Apple. ...

How are the 2 View Controllers wired to the tabBarController in iPhoneRecipes

I am learning iPhone programming by reviewing the iPhone Recipes sample application. I am puzzled with how the two view controllers are wired to the tab bar. If they are wired in the XIB, can anyone explain how it is done or where I can get more visually aided details on connecting things in the XIBs. This is my starting point in the l...

How to trigger a function when the iPhone is rotated 90 degrees?

How do I detect the rotation of the iPhone for approximately 90 degrees? Additionally, I don't need/want the screen itself to rotate. I just want to call a function when the phone has been rotated. Thanks! ...

Storing a list of Categorize URLs - Sqlite DB, XML, or pList? Structure Design?

Hey guys, I want to store a categorized list of URLs. This is an internet radio streaming app, and so I want to have at least three links for each genre: the free streaming URL with commercials the premium streaming URL at 128 kbps the premium streaming URL at 256 kbps So every genre will have these three URLs. For the premium strea...

what iPhone application that helps developer most?

I just bought an iPhone 3GS and wondering what applications that can help on .NET development. ...

Playing multiple sounds with AVA

The following code ONLY plays one sound - ignores the other. Im very new to IPHONE sdk - ive scoured the web looking for a working example - Please GURUS of OBJC please help a poor Padawan learner. IPhone SDK 2.2.1 (void)viewDidLoad { path2 = [[NSBundle mainBundle] pathForResource:@"alien" ofType:@"caf"]; oplayer=[[AVAudioPlayer al...

How do I automatically run my iphone app after building it?

I'm using google unit testing code. I'm building it quite nicely with xcodebuild on the command line. Now I want to run it (preferably on attached Device but simulator would also work) and catch all the feedback from the tests. But I can't find out how to run it. Any ideas? ...

recreating streetview effect in my own iPhone App

Hi all, My app allows you too "look" around a room in avery similar manner to how you can "look" around a street when you are in streetview in the Maps application. Does anyone know of a simple way to recreate this effect? I do have an image (like the streetview image) that I would like users to look around in. Some ideas I have: 1)...

How can I enable multiple segments of a UISegmentedControl to be selected?

Lets say my UISegmentedControl has 8 numbered segments. I would like for the user to be able to turn on 2, 3, or more of them at once. Toggling them. Essentially like a bits in a byte. Is this possible? I believe it is on regular Mac OS X but I can't seem to find a way to do it in the iPhone SDK. If I have to simulate this by putting bu...

When I open a custom UIView from a UITableViewController, how do I close the custom view and go back to the table view?

I'm using a UITableViewController for a menu in a game. The table view opens a a view controller for my custom UIView that shows the game. When the game finishes the UIView is notified (which is kinda ruining the MVC principals) and from there I am kinda lost. Questions: Can a UIView communicate with its controller? How? Can one contr...

iPhone - How to determine in which cell a button was pressed in a custom UITableViewCell

I currently have a UITableView that is populated with a custom UITableViewCell that is in a separate nib. In the cell, there are two buttons that are wired to actions in the custom cell class. When I click one of the buttons, I can call the proper method, but I need to know which row the button was pressed in. The tag property for each...

Why does XCode show the wrong object address in the debugger window?

My application tested whether my selectedViewController was equal to my moreNavigationController. if( self.tabBarController.moreNavigationController == self.tabBarController.selectedViewController ) { // do something awesome. } else { NSLog(@"No match"); } The expression always evaluated false, so I started debugging. I put a break...