iphone

iPhone SDK 4.0 MpMoviePlayer Adding user defined controls

Hi, I need to add some user defined button on top of MpMoviewPlayer's view. When the movie is playing, if we touch the MpMoviewPlayer's view, the default controls are displayed, along with these controls I need to add some buttons. So that the buttons will be visible when the view is touched and they will become invisible when we touch ...

How does iBooks do this?

I am currently displaying text in a uiwebview. However, I would like to allow a user to select text and perform some action with the selected text (google it). Apple has done this sort of thing with iBooks. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Webview? UIMenuContro...

iPhone Cursor Magnifier

I don't suppose there is a way to trigger the native iPhone magnifier on static content in the way I need. Is there a library that would simulate (visually) the iPhone magnifier effect for any element when being tapped on for a while and returned the cursor (i.e. magnifier) position within the element? Just asking before I start writin...

calculating the time taken for downloading a 20 mb file via 3g network

Hi, how to find out the time that will be taken for downloading a 20 mb file via 3g mobile ? In theory what is the mathematics to find that out ? ...

iPhone: app crash with leak in framework? or is it my fault?

Hi all, I got the following crash logs after my app crashes: 0 libobjc.A.dylib 0x000034f4 objc_msgSend + 20 1 UIKit 0x000a9248 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 644 2 UIKit 0x000a8eac -[UITableView(UITableViewInt...

proof of concept document

Hi, i have been asked to submit a Proof of Concept Document before working on the iphone app (for my college) which would include the feasibility of the project, the working of the app and so on. i've never done this before and need a template of a POC for my reference. couldn't find much on the web. ...

How to use accelerometer to delay taking picture while phone is moving?

I'd like to help my users take a clearer picture by delaying the "snap" while the phone is moving. I've been able to implement this with a cameraOverlayView so a tap on the image takes the picture, but I would like to use the standard camera button. What is the best way to hook in to the standard button? I've seen one answer to put a ...

GPL, Apple Store

Is it possible to submit an application to the Apple Store under a GPL license? ...

Errors with iAd when using the sample code.

Hello everyone, I am using iAd code implementation from the iAd class reference: I have implemented the iAd delegate, however I get some errors when I directly copy and paste the code from the website. I have created new projects and tried entering in the methods from the website directly, but I still get the same errors. You guys can...

iPhone app user review request from code

Hello guys! Can I request the user of my iPhone app to submit a review about the application? ...

View Controller in cocoa touch

Can a view be managed by 2 view controllers? An example is the Root View controller has a Table View Controller inside it, The view of both these controllers is the table view. With this configuration the app loads but crashes during run-time where you scroll the table view. Whats wrong here? ...

Force UITableView to dump all reusable cells

I have a UITableView where I have the backgroud color set via UIView *myView = [[UIView alloc] init]; if ((indexPath.row % 2) == 0) myView.backgroundColor = [UIColor greenColor]; else myView.backgroundColor = [UIColor whiteColor]; cell.backgroundView = myView; [myView release]; The problem I find is that when I edit a table (...

Uploading image to Facebook and including it in feed post from iPhone App

Hey all, I was working on an iphone app where users create images (think like a paint program); then they have an option to post it to Facebook: the image would be uploaded to the users albums and simultaneously a post would appear on their stream ("Hey, look what I just made with app X, get it here; etc). This used to work just dandy,...

Divide Long Long Number as Percent

In an iphone app, I have 2 large numbers stored in NSStrings, and I want to figure out the float number that is achieved by dividing them. Right now, I have: unsigned long long number = [string1 longLongValue]; unsigned long long number2 = [string2 longLongValue]; float percent = number/number2; [textField setText:[NSString stringWit...

NSDate dateFromString returns null

I am saving a date that has been converted to a string to a plist when the app exits. When the viewDidLoad is run I am trying to read the string back in and convert it back to a date. The string saves to the plist and reads in correctly but will not convert back to a date. I am using the standard format given by the NSDate date command. ...

crash when setting image in UIImageView

Hi, I'm using a piece of code I have used several times before to load an image into a UIImageView - (void)viewDidLoad { [super viewDidLoad]; UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"1" ofType:@"png"]]; [self.imgWeather setImage:img]; } For some reason I get a SIGABRT when I...

Cocoa-Touch: Is there any open-source UIImageView subclass that supports touchUpInside and initWithUrl?

It's been more than 3 years since Cocoa-Touch is out, the licensing is permissive now. Many, many apps have UIImageViews that are actually buttons, and load from the internet. Is there any open UIImageView subclass (or similar) that supports: adding a target for the touchUpInside event (maybe others too) initializing with a NSURL, lo...

Calculate compass heading to a CLLocation - Haversine functions for iOS

I understand how to get the distance between 2 CLLocations. I need to determine the generalized compass bearing (N, NE, E etc.) from a CLLocation to another CLLocation. Before I implement something to derive the bearing with the haversine formula is there a generally adapted open source library or code fragment that you've found solves ...

iPhone animated view overlay

I have a few XIBs that are my pages, and i'm using presentmodalviewcontroller to switch between them with some buttons. Now I want to use other buttons to pull up overlays on those views. How I have it now is I have a button which simply toggles the "Hidden" property on the UIImageview. What are options for animating the show/hide fun...

UITextField Autocomplete - iPhone SDK

Hi all, I am trying to figure out if there is a way to implement an autocomplete functionality in a UITextField for specific values. I know that the UITextField can do this using the iPhone dictionary (much like searching google in safari, etc), but I want to be able to programmatically have it correct to certain values that I specif...