I have a PDF file that I want to draw in outline form. I want to draw the first several pages on the document each in their own UIImage to use on a button so that when clicked, the main display will navigate to the clicked page.
However, CGContextDrawPDFPage seems to be using copious amounts of memory when attempting to draw the page. ...
I'm making a partial overlay modal in my app with the code from “Semi-Modal (Transparent) Dialogs on the iPhone” at ramin.firoozye.com. In doing so, the button that calls the modal is still visible and clickable. I will hide this button when the modal spawns, but I want to be sure if the user clicks very quickly twice, a new modal doesn'...
I am trying to copy one array to another:
NSMutableArray *itemsCopy = [[NSMutableArray alloc] initWithArray:self.items copyItems:YES];
but I get the error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Item copyWithZone:]: unrecognized selector sent to instance 0x5a74900'
*** Call stack at fir...
When calling reloadData on a UITableView what methods are actually invoked?
[tableView reloadData];
...
I am trying to append objects to my data source and then reload the table. Is this the correct way of approaching it?
self.items is my datasource
//Copy current items
self.itemsCopy = [self.items mutableCopy];//[[NSMutableArray alloc] initWithArray:self.items copyItems:NO];
NSLog(@"Copy Size before append: %d",[itemsCo...
I'm puzzled... I have this function "colorWithHexString"... when I include it in the viewcontroller that's calling it then it works fine. But when I move it to a separate "BSJax" class and call it with the same input parameter it throws an unrecognized selector error. Here's the call:
BSjax *bsjax = [BSjax new];
NSString *hexString = ...
Hi, I'm writing an iPad application that mimics a flash website I built.
The site uses Flash file uploader to upload files from the user's filesystem to my tomcat server.
I understand that an iPad application can sync files via iTunes to a Documents folder.
Given access to those files, how can I invoke a file upload of a selected file t...
Edit:Ok, this is weird... After doing extensive debugging, I have discovered that whilst the text fields are resigning first responder status (I can see that there is no longer a blinking bar in any), the keyboard is NOT GOING DOWN! Maybe this deserves a different question.
I have several text fields in a custom uiviewcontroller subcla...
In my Cocoa program, wouldn't a really simple way of dealing with autoreleased objects be to just create a timer object inside the app delegate that calls the following method e.g. every 10 seconds:
if (pool) {
// Release & drain the current pool to free the memory.
[pool release];
}
// Create a new pool.
pool = [[NSAutorelease...
Is it possible to rotate a view so that I can use UIViewAnimationTransitionFlipFromLeft/Right to create vertical page flips?
...
what is the best method to display about 300 png images into a UITableView..
i dont wanna display them at the same time... i have 3 tableViewControllers that will each display about 100 imgaes.. (its for a catalog so the images are important to display)
i used [uiimage imageNamed:] but that method caches the images and they dont get ...
I have this:
_launcherView.pages = [NSArray arrayWithObjects:
[NSArray arrayWithObjects:
[[[TTLauncherItem alloc] initWithTitle:@"New Note"
image:@"bundle://Icon.png"
URL:@"ht...
Building an iPad app. I have a button on my main view that I want to launch a help window. The help window is fairly involved and has its own xib/controller. I resized the help window's XIB and saved it. I instantiated it and added it to the application controller's views as a modal. For some reason this window is still taking up th...
In my app, I have a table view. When the user clicks a button, a UIView overlays part of that table view. It's essentially a partial modal. That table view is intentionally still scrollable while that modal is active. To allow the user to scroll to the bottom of the table view, I change the contentInset and scrollIndicatorInsets values t...
UIWebView exhibits jerky behavior when scrolling fast through lots of content. Mobile Safari, on the other hand, scrolls quickly and smoothly. It displays a simple checkerboard pattern while scrolling and then renders the page when scrolling is done.
How can we get Mobile Safari's fast, smooth scrolling behavior with a UIWebView?
...
Hi all,
After following all the instructions on http://three20.info/setup/existing to integrate three20 library into my project. I'm getting this linking error:
duplicate symbol _TTCreateNonRetainingArray in /test XYZ Photos App/Three20/Build/Products/Debug-iphonesimulator/libThree20Core.a(TTGlobalCore.o) and /test XYZ Photos App/Three...
Hi all,
Is it possible to make textfield come from above to down in an animated way when a button is pressed?
Thanx in advance.
...
Hi all,
I have a requirement where UIPickerView should be customized. The picker view should look something like this:
The application which has customized the pickerView similarly is:
http://itunes.apple.com/us/app/convert-the-unit-calculator/id325758140?mt=8
I have tried removing the default pickerView selection bar by resetting t...
I am having a few nagging issues with NSFetchedResultsController and CoreData, any of which I would be very grateful to get help on.
Issue 1 - Updates: I update my store on a background thread which results in certain rows being delete, inserted or updated. The changes are merged into the context on the main thread using the "mergeChan...
I just spotted the following in an online tutorial. It showed 001 as a method for assigning a selector, however I could not get this to work. Am I right in thinking that 001 is not right and 002 is the correct way, or am I doing something wrong with 001?
// 001
SEL mySel = [self something];
// 002
SEL mySel = @selector(something);
...