cocoa-touch

Interface Builder caching bad data (voodoo)

Sometimes IB will hold onto old or bad references, and I cannot seem to remove or edit them. EDIT I have made this a wiki question with the intention of gathering more data on the phenomenon. Answers involving situations where other coders have encountered this are welcome. This happened to me again last night with a table controller. ...

Stacked UIView Layers Don't Move

I'm developing an iPhone app that moves a UIView layer between other UIView layers based upon the accelerometer. If the topmost layer is the one that's moving based upon the accelerometer, no problem. If I add a UIView on top of it, the movement is extremely delayed. If I add a second UIView on top of it, the movement stops. The update...

Restricting user interaction in UIWebView

I want to restrict the users from using the links in a UIWebView. Hence, showing only single a HTML page with no navigation. I know I can do that using the "User Interaction" option of UIWebView but I can't use that since it disables scrolling as well, and the user cannot view the complete page. Any ideas? ...

Passing variables to different view controllers

Hello, I've searched and searched but nothing has really worked. I'm trying to set a textvalue from a text box, into a string or whatever, so that I can call it up later in a different view controller. I can't seem to get it to work! I'd also like numbers to be carried over, such like currency's. Any ideas on them? Cheers. ...

Using a UIPickerView with custom values

Hello there, Im using a navigation controller and a normal view. In the view I'd like a UIPickerView with custom values in it. It would have one column with about 15 values in it. And I want the ability to add an action to each value. Is there any way I can do this using Xcode? I can't seem to find the corrent help. Cheers. ...

How do you debug your application if they got started using a custom URL scheme?

I'm developing an app for the iPhone, but I guess the question is the same on the Mac. What is your approach to debug the state of your application after it has been launched by its URL scheme? ...

What is -[NSString sizeWithFont:forWidth:lineBreakMode:] good for?

In my question "How do I get -[NSString sizeWithFont:forWidth:lineBreakMode:] to work?", I learned that -[NSString sizeWithFont:constrainedToSize:lineBreakMode:] was actually what I needed. The documentation for -[NSString sizeWithFont:forWidth:lineBreakMode:] states explains it doesn't actually wrap the text to additional lines. So ho...

export key in x509 for iphone

Hey, all - I'm having issues with the iphone sdk. I created a key pair and can encrypt and decrypt with it with no problems. Now I need to get the public key in X.509 format to pass to a Java-based web service. SecKeychainItemExport is available in the standard Cocoa libraries, but this function apparently isn't available through the ...

UITextView when put in a UITableViewCell sometimes do not display the content

I wonder if anyone else is facing the same issue. I have a UITextView field placed in a UITableViewCell. Sometimes it does not displays the text. When i click or scroll the table view, it appears. Any guesses? ...

Cocoa Touch behavior for events

I have been over the iPhone Programming Guide several times regarding the behavior of when the event methods are called in an app. From what the guide says: touchesBegan is called when a finger first touches the screen. touchesMoved is called when a finger on the screen moves. touchesEnded is called when a finger lifts off the screen....

Can you animate a height change on a UITableViewCell when selected?

I'm using a UITableView in my iPhone app, and I have a list of people that belong to a group. I would like it so that when the user clicks on a particular person (thus selecting the cell), the cell grows in height to display several UI controls for editing the properties of that person. Is this possible? ...

Version of XSLT in iPhone

I plan to use XML/XSLT in my iPhone application. What version of XSLT is currently supported on the iPhone? Can I use XSLT 2.0 or just 1.0 ? ...

Using a UISlider to change volume

What's the best way to use a UISlider to change the volume of the iPhone in an app? ...

Customizing MPMoviePlayerController

I wanted to customize an MPMoviePlayerController to add more control to a video player. I can add extra controls but the top buffering control is removed. How can I make it visible? ...

How do I flip a UILabel horizontally?

I want to develop an iPhone application using the utility template, where the flip side is semi-transparent displaying the contents of the main view, flipped horizontally. Edit: To create the illusion of semi-transparent flip side, I'd display the same content on the flip view as in the main view, but mirror the content and lower the...

How to reset the touches queue?

How do I make the iPhone forget about UITouch events, or simulate a touchesCancelled event? ...

How can i determine if location information returned by CLLocationManager is valid?

How can I determine if location information returned by CLLocationManager is valid? ...

Caching the struct Object

How do I create a cache for a struct pointer object in Objective-C? Is there any third party component for caching objects as Java and .NET have? I have the following struct: typedef struct _news { references char *headline; char *story_url; } news; I have a double pointer for the above struct in an interface class. I would lik...

How to create a font with CGFontCreateWithFontName?

I want to have a greater control on how and when fonts are loaded and released, therefore I'm interested in getting CGFontCreateWithFontName() to work. GContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSelectFont(ctx, "Georgia", 20.0, kCGEncodingMacRoman); // DRAWING WITH CGContextShowTextAtPoint() IS WORKING... GContextRef ...

Display the iPhone keyboard

I've run into a problem with the UITextView that seems to be related to having a scrollable view within a scrollable view. In order to remedy this i thought i would attempt to write my own multiline (but not scrollable) text view. Given the core graphics methods, and the UITextInputTraits class it seems like this should be feasable. ...