I have downloaded a gif image into an NSData object (I've checked the contents of the NSData object and it's definitely populated). Now I want to load that image into my UIWebView. I've tried the following:
[webView loadData:imageData MIMEType:@"image/gif" textEncodingName:nil baseURL:nil];
but I get a blank UIWebView. Loading the ima...
Is there a way to draw on the iPhone screen (on a UIView in a UIWindow) outside of that view's drawRect() method? If so, how do I obtain the graphics context?
The graphics guide mentions class NSGraphicsContext, but the relevant chapter seems like a blind copy/paste from Mac OS X docs, and there's no such class in iPhone SDK.
EDIT: I'm...
I have a tableView with several Sections being populated from a plist of NSDictionaries
How do I have it arrange the sections in the order they are in in the NSDictionary instead of alphabetically?
...
Anyone know how to change the link color or the phone number color in a UITextField? It's nice that the detection option automatically changes the color of these things to blue and underlines them. But come on, fluorescent blue? Really? OK, it looks fine on a white background, I guess.
Wishful thinking ...
textField.linkColor = [UIColo...
Hi All,
I need to implement the lazy loading concept for the images in my tableview, so that the user will be provided with the textual data initially and later the images.
How can i implement this in to my app.. help needed.. please
Thanks in advance
Shibin
...
Hello,
I wanted to post some text in a UITextVIew.
I wanted the user inserisse.
As messages tomore be inserted into a queue to another as in a chat.
How can I do?
Thanks
...
I have a Table with over 3000 entries and searching is very slow.
At the moment I am doing just like in the 'TableSearch' example code (but without scopes)
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
{
[self filterContentForSearchText: searchStrin...
I'm diving into iPhone OS development on the iPad and one of the things I'm playing with is the SplitView template. The template provides a window with a UISplitView view, containing the Root View (on the left of the window) and the Detail View (on the right of the window). The Root View is a subclass of a TableView. Rather than havin...
I've been following Apple's TableSearch code example, but it's not working for me and I think I'm doing everything the same way they did it. The method below should be fired whenever the user types anything into the search box, but it never gets fired for me, just on the sample app.
My header file has this implementation:
@interface C...
An identical javascript:openwindow call with a link to Google maps opens in Safari on the iPad but in the Google Maps App on the iPhone.
Why the difference?
<html>
<head>
</head>
<body>
<a title="View an area map for this property"
href="javascript:openwindow
('http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&...
I'm trying to replace all multiple whitespace in some text with a single space. This should be a very simple task, however for some reason it's returning a different result than expected. I've read the docs on the NSScanner and it seems like it's not working properly!
NSScanner *scanner = [[NSScanner alloc] initWithString:@"This is ...
This is probably a dumb question, but I can't find the answer in the docs. Did the "Done" button on the pop-up keyboard always cause the keyboard to disappear? I see a lot of code around the web like this:
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
[theTextField resignFirstResponder];
return YES;
}
When I pres...
I have a UITableView within a nib file. It works perfectly with 4 or more cells. When I have only 2 or 3 cells and the screen is not completely filled with cells I have these empty cells (dark gray, which is actually just the background of my TableView) at the bottom.
However, they shouldn't be there, because my numberOfSectionsInTabl...
In one of my project, I want to use the TTURLRequestModel to populate the response data in XML format by passing the TTURLXMLResponse to the request. However, the delegate method is never called. Can someone tell me what I am missing in these two files? Do I need to initialize some other elements of the library?
Three20Parser.h
@inter...
I want to add various things below a UITableView (group styled). Like images and buttons. So that they arrange themselves just below the table. (The table's height is variable).
How would I do this? Normally I guess you would just put them in the last cells of the table, but this doesn't seem possible with the grouped view, since it dr...
Hi,
I'm just starting to discover Three20, and would like to know in which direction to look for using Three20 with another protocol than HTTP. Three20 uses requests by URLs, and I would like to request files (for examples photos in TTImageView) using a different protocol (a home made one).
If you can just tell me if it's possible with...
Is it possibe to put an MPVolumeView in a UIAlertView?
I have tried to put it inside of it, but it does not display. It may be the sizeToFit or initWithFrame: part?
Is there a way of testing if the MPVolumeView is actually being created?
Here's the code I initialize both the UIAlertView and MPVolumeView with:
UIAlertView *volumeAlert ...
Hey.
I have a project with a MPVolumeView in it. It is set up, and it works, the only thing is that when I mute the device, the text "No Volume Available" comes up instead of the MPVolumeView. I would rather like the slider of the MPVolumeView to be disabled when the device is muted.
The volumeView is initialized in the view volumeBoun...
I have a class WebServiceCaller that uses NSURLConnection to make asynchronous calls to a web service. The class provides a delegate property and when the web service call is done, it calls a method webServiceDoneWithXXX on the delegate.
There are several web service methods that can be called, two of which are say GetSummary and GetLi...
I can animate a UIView with sizes and positions etc. But how do you rotate it?
...