iphone

I am (also) having trouble making connections between code and Interface Builder

I have the exact same question as this post but with a better description of the problem. Using Inteface Builder (IB) I am unable to connect a button to the View Controller ("File Owner") in Apple's MoviePlayer sample. It will only connect to "First Responder" yet somehow, the Sample has accomplished this (see image). To put it another...

Is there a way to figure out what's the current affecting speed in a timespace?

Timespace problem: You make a big hierarchy of views, and give every layer a different speed value. Now all the Timespaces are messed up. At the bottom of the hierarchy you don't know what kind of time distortion you have. -10%? -90%? +50%? UIKit somehow has to calculate the speed in the hierarchy when animating. So I wonder if there's...

Storing large (e.g. image/movie) files in Core Data on the iPhone

Looking at the Apple iPhone Core Data Recipes sample app, they store image files in core data objects, which is not something I would normally think would be wise. Now I'm going to be also stories captured video on the 3GS. The question is: is it wise to store images, and then furthermore, movies, in Core Data on the iPhone? In addition...

What do they mean by "the timespace of the animation's layer" and "in the local active time"?

They say: The timing protocol provides the means of starting an animation a certain number of seconds into its duration using two properties: beginTime and timeOffset. The beginTime specifies the number of seconds into the duration the animation should start and is scaled to the timespace of the animation's layer. The...

UIImagePicker Changing my Background?!?

I am opening an image picker, camera style, as a modalviewcontroller. If I open the image picker, then cancel, the previous view comes back fine. If I open the image picker, take a picture, then go back and cancel, the background to my previous view is missing and I can see through to the main window. Does anyone know how this might h...

How to serialize a UIView? (iphone)

Hi everyone, Is it possible to serialize a UIView object? If yes how can I do that? Thanks ...

How to detect if the iPhone is using Wifi GPS, or their default wifi loation?

When the iPhone can't find a GPS signal, it uses Wifi to guess at your GPS location. When it can't find your Wifi location, it defaults to the wifi network where you activated your phone. Is there any way to determine when these two forms of location are occurring? The LocationManager provides a horizontalAccuracy reading, but if you ...

UIScrollView

Hey guys. I'm creating a 30-35 page comic book and just have been hitting roadblock after roadblock in my journey. 1) I know that I have to create 30-35 different UIScrollviews with the images inside. The problem there is that the autorotation automatically throws half the image off the screen 2) i have no idea where to place this code...

How to make the text entry and keyboard active when loading a UISearchDisplayController

I have a UITableViewController which implements UISearchDisplayDelegate and UISearchBarDelegate when I load i would like the text entry to be active and the keyboard displayed so the user can begin typing immediately. I tried [self.searchDisplayController setActive:YES]; in the viewDidLoad method. The field becomes active and the ca...

iPhone: Access a class from another class

I want to make a program that parses an XML file and then updates labels on 2 different tab bar views. On both of these views, I have a refresh button to update the results. What I'd like to do is update both of the views labels from either view. I figure the AppDelegate is probably a good choice to make this happen, but I tried creat...

How do I recreate a "settings application"-like tableview inside my application?

I want to add a view to my application that allows the user to change several (many) settings. It should look like the built in "Settings Application" (see here) but it has to be within my app itself. At the moment I just have a tableview and I manually add different cell objects (corresponding to switches, sliders, etc). Is there a smar...

NSLog outputs to console when running on iphone simulator, but not when running on device

Hi, Has anyone heard of that before? It's making me crazy. It happens only in the main app I'm working on. Other apps do show NSLog's in the console when running on the device. I've tried re-installing the sdk, rebooting the computer, cleaning, deleting the build folder, rebooting the phone, a million things. I know the nslog code g...

Load image from url in iPhone, only if small

I'm using initWithContentsOfURL of NSData to load an image from a url. However, I don't know the size of the image beforehand, and I would like to the connection to stop or fail if the response exceeds a certain size. Is there a way to do this in iPhone 3.0? Thanks in advance. ...

iPhone SDK NSUserDefaults not saving correct values

I could use some help. After a few frustrating days of trial and error, I'm getting inconsistent results writing preferences to NSUserDefaults. Here are the consecutive lines of code: NSLog(@"startTimer(): End Time defaults: %f\n", [defaults floatForKey:kEndTimeKey]); NSLog(@"startTimer(): new End Time: %f\n", endTime); [defaul...

iPhone web application development

I would like to create a website that is iPhone-friendly ... that looks like an iPhone app, but is really on the server, just like Gmail for iPhone. My understanding is that this is how Apple originally had planned for application development to happen. However, I can't find documentation on how to do this. Is there a link or something...

Can you force a touch event to cancel after touchesBegan?

Given a certain state of one of my UIViews I'd like it to respond to touchesBegan and then cancel any further touchesMoved/Ended that continue from that particular touchesBegan event. Basically I have an UIView subclass at rest and if it's touched I'd like to move some other UIViews out of the way... then the next time it's touched the...

How can I keep drawing my GLView while messing around with other views (like scrolling a picker wheel)

My app has two views, one holds the OpenGL context which is constantly redrawing itself (through an NSTimer) and the other holds a picker wheel. While I'm spinning the wheel, it seems that the timer stops firing. Is there some method I could override for the picker view to manually call the draw? Or some way to keep the timer firing? ...

GPS coordinates in degrees to calculate distances

On the iPhone, I get the user's location in decimal degrees, for example: latitude 39.470920 and longitude = -0.373192; That's point A. I need to create a line with another GPS coordinate, also in decimal degrees, point B. Then, calculate the distance (perpendicular) between the line from A to B and another point C. The problem is I ge...

Save recorded file to ipod Library path.

Hello Everyone, Hope you all are fine and also in one of your best mood. I need your help to know one thing in iPhone, if You know then please share it with me and lot's of other phone developer. I am developing an application in which i need to record a Sound and Add it to iPod Library. I finished with recording file, but now issue ...

iPhone OpenGL fps test

Anyone can tell me how to get and display the fps (frame rate) of a running program on screen? ...