I have a custom UIView that is composed entirely of CALayers.
In the awakeFromNib method it creates and sets all the CALayers into their appropriate positions (CAGradientLayer, several CATextLayers, and a few custom CALayer subclasses). The custom UIView does not override the drawRect: method because there's no drawing done directly int...
I need to extract the contents of the title tag from an HTML page displayed in a UIWebView. What is the most robust means of doing so?
I know I can do:
- (void)webViewDidFinishLoad:(UIWebView *)webView{
NSString *theTitle=[webView stringByEvaluatingJavaScriptFromString:@"document.title"];
}
However, that only works if javascript ...
Is there a way to make it so when a site is viewed with a phone or other small mobile device the site automatically recognizes that it is being viewed as such and either re-directs to a phone friendly subdomain mirror or automatically calls a script that makes it phone friendly?
Any articles or advice would be greatly appreciated!
...
According to this post, there is a stretchable UIButton image that is red.
Does anyone have a green one? (My Photoshop skills are very poor.)
...
Hi,
I'm dragging things around in the Interface Builder... I'd like to specify whether an image is in front (like an indicator) or behind of a button (like a background). I don't see any z-index property as I'm used to seeing on other environments. If there isn't
a z-index property what is the best way to go about what I'm trying to a...
How come this won't switch views for me? When I click the button it does nothing...
-(IBAction)howtoplayButtonClicked{
howToPlayViewController = [[HowToPlayViewController alloc] initWithNibName:@"HowToPlayViewController" bundle:nil];
[self.navigationController pushViewController:howToPlayViewController animated:YES];
[HowToP...
I have an iPhone application I am about to modify for the iPad.
My problem is: the application is designed to work for iPhone OS 2.0 and if I make it for the iPad, I will have to design it for OS 3.2.
I cannot change the iPhone version, because I risk some of my users with old versions of the iPhone not being able to run the app.
Obvi...
I am working on an in app purchase app. I would like fill a table view with a list of products,
and put a BUY button on the right hand side of each entry. Does anyone have the UITableView - fu necessary to do this?
Thanks!
...
I need to store an array of user created objects (a user enters data for several properties and then commits it), and I need it to be available in a database or something similar so that I can call it up and display the data when the user calls for it even after the user quits the program(the persistent part).
Other considerations are ...
'lo all.
I am in the ending portion of my app for the iPhone and found that I am in a section of the app where I want to give feedback about the status of some background process running (location manager accuracy) and want to place it in the lower left of the screen. This can tell a user how "sure" we are about the given search resu...
I'm currently developing a simple Javascript/HTML timetable application for use on mobile phones. The application includes a search facility that I would like to add autocomplete to, but doing so from within the DOM results in a pretty messy experience on Android (and I guess also iPhone).
At least on Android, while the user is focused ...
In Interface Builder, you have to set the size of the tableview and position the other elements beneath that. I want the tableview to be sized to fit any number of rows and the buttons to be moved down relative to the tableview.
Is it possible to do this without building the whole thing programmatically?
...
Whats the recommended way of displaying a background image in an OpenGL ES app.
UIImage added to view hierarchy underneath glview?
image drawn in OpenGL draw routine from texture in memory?
Are there any performance / memory considerations to take account of?
...
I am trying to attach an image and a pdf to an email using the MessageUI framework. I followed the MailComposer example in the Apple documentation.
On the iPhone it seems to work perfectly, the image and the pdf both show up in the body of the send mail window as expected.
However, when I receive the email on my MacBook there are two ...
Hi i created a TTStyledTextLabel, works well.
Now i want to make URL clickable, i've done this:
textLabel.text = [TTStyledText textFromXHTML:[content objectForKey:@"content"] lineBreaks:YES URLs:YES];
but my links are still unclickable. Do i have to setup a UIWebView first? Where to declare it?
Another thing is, is it possible to re...
Hi Everyone,
I wonder if there's any way to loop inside a mailbox and get the list of messages inside the mailbox.
I want to open each message and take screen shot of the email. Is there any way to do this? Any reference?
Thanks for your help.
...
I am using Core Data for an iPhone application. I have a property isChangedFromOriginal that defines if the data (for several fields - if one is changed it is the same as if all were changed) was changed from a preloaded standard.
I am planning to create a subclass of NSManagedObject and perform the checks in ValidateForUpdate:, howe...
I am creating a music application, much like the standard music app. Now, I am befuddled on how they were able to read and change the elapsed time of a song using a UISlider. How is it possible to read and change the elapsed time of a song?
...
These seem like a great combination--I'd expect to see more on at least GWT/iPhone integration, but there isn't much.
I've looked through the reader example that Google made, but it doesn't seem to take advantage of many of the iPhone features.
I was wondering if anyone knew of a tutorial/resource that showed how to use things like loc...
I have a viewController which imports XMLParser.h as the class xmlParser
I'm passing an NSURL object in my viewController to the xmlParser class with the getXML method below
goButton is the button I tap to call the getXML method below. I disable the button which I tapped to trigger the getXML method, but I'm not sure where to put the ...