iphone

Download video before view Iphone sdk

Hi, I am developing an application that requires to play some video. However I do not want to pack the videos with application. Instead I would like to download videos in the NSDocumentDirectory and then play from there using MPMoviePlayerController. Anybody any Idea how could I download the video from a url? Thanx, Gezim ...

Cell specific Action like slide-in menu

I'm attempting to implement a slide-in menu like in the facebook app. I have a NIB for a custom UITableViewCell, which includes a button. The button has an IBAction associated with it, in which I animate in a subview of my NIB (the delete/edit menu). My problem is that my animation only happens on one cell, and its not the cell where I...

Exception when deleting row in TableView

Whenever I hit the DeleteRows code, I get an exception telling me that the number of rows before and after the update need to be the same. Here's the official text: Reason: Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (3) must be equal to the number of rows co...

Best way to center a UILabel in a UITableViewCell that's dynamic in height?

I'm trying to place a UILabel directly in the middle of a UITableViewCell vertically. Essentially I'm doing something such as: float yPos = self.contentView.center.y; I then assign yPos to my UILabel and add it as a subview of self.contentView within my UITableView subclass. This still doesn't appear to be smack in the middle of the c...

Best way for a mobile app to display records from thousands available?

Suppose, you have a larger database of customers, such as 5000 records. Using a simple select query it can take 2-5 seconds on a mobile application to populate a listview with all thousands of customers available. But the user only needs to select one, so what is the best way to select the customer? If you have a few records eg: 50 cu...

MKMapView: How to set the region span based on the Accuracy?

Im implementing a map application on iPhone. I want the map to zoom in on the user's current location. I'd like to zoom closer based on the accuracy (emulating how the Maps app works). Im implementing this method: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLo...

Overriding iPhone shutter sound through SDK

In my iPhone app, I am using the UIImagePickerController with source type UIImagePickerControllerSourceTypeCamera. When the user takes a picture, the phone plays the familiar camera shutter sound. How can I replace this with my own custom sound? I know it's possible because I've seen other apps from the App Store do it (e.g. Red Laser). ...

iPhone SDK: phone to phone file transfer

Hello, What is the simpliest approach to copy files from iPhone to iPhone (p2p). The only way I can come up is this: Use Bonjour to discover server app (which will advertize itself via Bonjour) Use NSStream (or sockets) and then stream data from the file from peer to peer (read chunk of the file, send chunk of the file and so on un...

How to check if an object is already in the database before saving a new one?

Example: I have a list of friends which I retrieve as XML from a web server. On the device I want to store those friends with an update feature locally. But I only want to store NEW friends. To keep it simple I distinguish them by their first name only (yes thats bad!). As the XML parser walks through the XML, it generates managed objec...

initWithBarButtonItem change from UIBarButtonSystemItemPause to UIBarButtonSystemItemPlay?

My application has a UIBarButtonItem with a UIBarButtonItemPause icon in the upper right corner of the screen on a UINavigationBar. I'm looking to have it so that when I press the button it changes the icon to a play button, and back to a pause button when it is unpaused (similar to the way in which iTunes, Quicktime, or iPhone's integra...

google maps on the iPhone center on location

Hello, I am calling the google maps application from a URL within an iPhone application. Does anyone know of a way to ask the map to center on the current location prior to searching? My option is to query the GPS and set the center of the map, but thinking that there has to be a way to have the map app do the same thing. ...

how to move title over in iphone navigation bar

I wish I could show you all a picture, but I have two buttons on the top right of my nav bar and a refresh button on the left. The title is in the middle, but the first two letters are getting overwritten by one of the buttons on the right. How do I 'push' my title (or titleview - either one) so that the title moves over a bit? I want t...

Resizing UITableViewCell when entering edit mode.

I have a cell that I have designed in Interface Builder, and when I enter edit mode, it moves the whole cell to the right to make space for the delete icon, but it pushes all items to the right, not shrink them down. It pushes a UILabel off of the edge of the cell. Also, this is over the move handles. How do I shrink these items down,...

Offset on UIWindow addSubview

I've got a UITabBar based application that works just fine. Under certain circumstances I am showing a different UIViewController instead though. Now what bugs me is that that I have to adjust the frame for the Test nib (and only the Test nib!) to display correctly. (Otherwise the view is below the status bar). - (void)applicationDidFin...

iPhone SDK TV Output

Hi all, does someone know something about TV output with dock connector. I would like to create a new application that use TV output. Is there some official API/documentation? Thx, Paolo ...

Using the UIImagePickerController image editor seperately

When you are using an UIImagePickerController, you have a property called allowsImageEditing, which makes it possible to zoom in/crop/etc a picture, after you picked a picture (from camera or library). I would like to use this editor just with an UIImage as a source, the images are loaded from the internet and I want the user to be able...

Multiple Unrelated Entities in one Core Data Model

Hi, I want to have the equivalent of two completely unrelated tables in my database, and for this I have defined two different entities in my Core Data model. Further to this, I have a different ViewController making use of each of these entities and therefore I'm initializing two different fetchedResultsController (one in each ViewC...

iPhone: Reading Text From File and UISegmentedControl

First off, I'm a complete beginner. That said, I thought an ambitious longer-term project/learning experience would be to create an app that displayed daily quotes, like those cheesy day-by-day calendars our grandmothers have in their bathrooms. I want it to have two per day, each one represented by a tab in a UISegmentedControl. That...

Portability of Core Data's SQLite file between OS X and iPhone OS

I have an existing application using Core Data on the iPhone. Occasionally there would be updates to the application's data delivered as updates to the App Store. In my perfect world, building an application to edit the data in the updates with an OS X application and copying the sqlite database to my iPhone app bundle would be a relativ...

Is HTTP Streaming with the iPhone buggy?

I am attempting to stream video using Apple's http streaming technology. I am beginning to suspect that either the player on the iPhone or the Apple tools used to segment the videos is buggy. http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html I am get...