If I have a (potentially largish) file on disk, and I want to determine quickly whether UIImage will be able to load it.
I don't necessarily trust the file extension to be reliable; I need to look at the actual data.
I can (of course) load it into a UIImage, but that's relatively slow and rather memory intensive. I'd rather just peek a...
My application has a view controller that extends UITableViewController. The initialization method looks like this:
- (id)initWithCoder:(NSCoder*)coder {
if (self = [super initWithCoder:coder]) {
self.tableView = [[UITableView alloc] initWithFrame:self.tableView.frame
st...
I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the MKTestMapView.h file, a UIPopoverController* popoverController defined in the @interface and a @property (nonatomic, retain) UIPopoverController* popoverController; defined outside of the @interface section. This controller is @synthesize...
Hi,
I have a view that i need to rotate to fit the screen orientation.
As i can't set the orientation directly onto the view, i need to to the transform myself.
However i don't know how to calculate the angle rotation according to current view and old view.
Any help would be appreciated
Thanks
...
I am new to iphone development.the alpha value of the movie player changes from 0 to 1 while playing the video. I don't want to show the change in alpha value.I want to keep the alpha value to 1 when loading .I am using the apple reference sample program.Thanks.
...
Hi.In my Iphone app I am getting:
objc[597]: FREED(id): message release sent to freed object=0x3b81780
error.What should cause this error?IS it about memory allocation? I have UITable and model view that include some text field.It takes username from model view and search this in internet and gets some images from internet.It takes ...
I'm trying to develop an application using UIWebView. The app is loading remote URL's, so in order to make it quick I want it to use the images included in the application bundle. I was wondering if there is a way to do it without forcing the application to manually replace the address of each image to point into local resources?
...
I'm writing a music reference app and for each album (pulled from last.fm) would like to link to the ITMS (if the album is in the store).
iTunes link maker web tool http://apple.com/itunes/linkmaker/ is great for getting links for a known album but I need to access it programatically from within my app.
This NSLog blogpost which is fro...
I've set my UITableView row height to in Interface Builder to 54.0. I have a UISearchDisplayController on that view. When the user taps the search bar in it, the table resizes properly. However, when they start typing (and actually doing the search) the row height decreases. It stays wrong until the search taps Cancel.
I could find no d...
In my data model I have an attribute that stores an array of objects. This is setup using an attribute that is transformable, and I am NSKeyedArchiver to convert the array of objects to an NSData object for storage. The object conforms to NSCoding and seems to be stored into the data store without issue on creation. I can close the ap...
Hello, how could I center or move content loaded on a webview object programatically??
...
Class 1 has the following code that generates the exception -
-(IBAction) searchAllAction: (id) sender {
AddDiagSearchController *search = [[AddDiagSearchController alloc] initWithNibName:@"DiagSearch" bundle:nil];
[self.navigationController pushViewController:search animated:YES];
}
the pushViewController part generates ...
I have 3 UITextFields in a grouped UITableView and am trying to figure out the correct logic to only have my 'Save' UIBarButtonItem enabled when none of the UITextFields are empty.
I'm currently using the - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string UITextFi...
What is the best way to create a custom UIView that I can consume in Interface Builder?
Create a custom UIView in Interface Builder and inherit from UIView in a code file, then somehow use it in another UIView ala like a control. (How do I do this?)
Create a custom UIView in Interface Builder and have a custom UIViewController wire it ...
I'm doing an iPad tech demo and I'm running into a serious technical problem.
I have an app concept that leverages UISplitViewController, but NOT as the primary controller for the entire app.
The app flow could be described roughly as this:
Home screen (UIViewController)
List->Detail "Catalog" (UISplitViewController)
Super Detail Scre...
Hi,
I've read apple's Objective-C doc and am curious about using @synthesize. I've seen classes with a long list of @synthesizes and I've seen classes with one @synthesize then a long comma-separated list of ivars. So what's the difference between:
@synthesize ivar1;
@synthesize ivar2;
@synthesize ivar3;
and
@synthesize ivar1, iva...
I can read the data in file.txt file located in local disk.
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"];
NSString* Data = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:&error ];
now, I upload the file.txt file into a website. how can i read the data from the txt ...
I would like to layout a TTSearchBar above above a TTThumbsViewController. My current (failing) attempt involves my own SearchViewController that inherits from TTViewController and contains a reference to a TTThumbsViewController and TTSearchBar. In the loadView method, I instantiate both TTThumbsViewController and TTSearchBar and add th...
I think I may be missing something obvious:
Is there a simple way to modify the UISearchBar or UISearchDisplayController so that it doesn't reload the view after each letter typed but only after the Search button is hit?
...
Hi,
I write a simple iPhone web app using HTML5's localStorage.
Tests on a 2G device show that data stored using localStorage does not persist after the Safari process is killed although the opened Safari windows are remembered.
The data is also lost in a case where I am on a different site on a different Safari window, then I change ...