I make extensive use of -drawRect: to do some nice animations. A timer tries to fire 30 times per second with -setNeedsDisplay, but it feels like just 20 times. Also I can't use -setNeedsDisplayInRect: because the animation covers the entire thing.
Would it help to take some of those drawing operations out of -drawRect: and move them to...
Sorry the basic question, but this bugs me for a while now.
I create a details view from a UITable and try to dynamically set its labels, but they are not updating:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
myObject *tmpObj = [[myObject objectAtIndex:indexPath.section] objectAtInde...
Hello,
How to create scrollview in a toolbar which is under(just below) navigation bar, same like shown in the image which is available there in the below http link. Please see the image where it located in the below link, and a scrollview created(Tabs are "Video, US, World" etc.) under "My Title" navigation bar. Could someone guide me ...
I can't find a way to set the font size of the title in a custom UIBarButtonItem. The only way I can think of getting around this is to set it as an image which I would like to avoid. Any other suggestions?
...
I have an app which is using Core Data on Sqlite,
Now I have a update which has some DB structure changes say adding a new table
I know when an app get updated, it updates the app binary only, nothing on document directory will be changed.
When the app gets updated and launchs at the first time and run
[[NSPersistentStoreCoordinator a...
I have a UITableView backed by an NSFetchedResultsController which may trigger updates at any time. If the user is currently reordering rows, applying these updates will cause an exception because the table view has temporarily taken over and you get an error like
Invalid update: invalid number of rows in section [...]
How can I detec...
Is OpenGL ES really so much faster? Why? And is it really so horrible complicated to draw such simple things in OpenGL ES compared to drawing these in Quartz 2D?
For example, I have a UIView subclass with -drawRect: implemented, where I draw some lines, curves and circles. Just simple paths, with some shadow.
What would I do in OpenGL ...
All I want is really absolutely basic 2D drawing stuff e.g. rectangles, circles, paths, curves, béziers and so on. I don't need all the 3D model meshes with all this texturing and lighting. Is there a good learning resource for a fast startup programming just for fun?
...
Dear All,
I am making an application which saves the camera roll images as blob in sqlite3 database.
When the image is retrieved, its dimensions changes(height and width get interchanged). This happens only on iphone and not on simulator. Please help.
Basically when i retrieve an image from db and run it on iphone device it changes fro...
I want to be able to create a greyscale image with no alpha from a png in the app bundle.
This works, and I get an image created:
// Create graphics context the size of the overlapping rectangle
UIGraphicsBeginImageContext(rectangleOfOverlap.size);
CGContextRef ctx = UIGraphicsGetCurrentContext();
// More stuff
CGContextDrawImage(ctx...
Hi ,
I have a issue with enumerationblock , when i try to access the vidoes and audios from the
phone using iPhone OS 4.0, i found the following api from the class AssetsLibrary
Invokes a given block passing as a parameter each of the asset groups that match the given asset group type.
- (void)enumerateGroupsWithTypes:(ALAssetsGroupT...
When rotating a label, the text is rendered very ugly. Is there an convenient way to get the label aligned with the pixels? Maybe there is some way of rounding the transform of the view, so that it isn't misaligned?
...
Hi
How can we create a new folder in picture's folder in iPhone. (of course programatically!)
Thanks
...
I have two customized cells in an iphone UITableViewController and would like to capture the data in one cell into another.....
I am currently unable to post images and pls assume the following points.
There are two custom UITableViewcells
1) Notes Textfield in one customcell
2) Submit button in another text field.
Now i want to pass ...
I need to project a personalized UIView with a UIImageView and 3 UILabel. I need to allocate more of this view because I want put it into a UIScrollView. I would avoid to generate the view programatically because it's difficult and boring design it. My idea is to create a new class that extends UIView and design it with interface builder...
How can I add UISwitch(toggle switch) to UIToolBar without using InterfaceBuilder ?
It is not a system item, so I could not use
UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
target:self
...
On the Apple guide, there is a step before building the AppStore version:
Open the Xcode project and Duplicate
the “Release” configuration in the
Configurations pane of the project's
Info panel. Rename this new
configuration “Distribution”.
Why this step is needed? Can I skip this step and use the "Release" configuration to...
I'm developing an iPhone application in Titanium, and need to append a row to a particular TableViewSection. I can't do this on page load, as it's done dynamically by the user throughout the lifecycle of the application. The documentation says that the TableViewSection has an add method which takes two arguments, but I can't make it wo...
Hi
I want to set UIImagePickerController inside my UITabBarController but I want it to be from source: UIImagePickerControllerSourceTypeCamera
How can I set this?
I added a controller to UITabBarController and set it as UIImagePickerController, but I cannot find a option to set it to be the Camera In Interface Builder. I just found Pho...
Hi, anyone knows what I need to do to retain my TableView iVars whilst pushing a details view onto the navigation stack?
I have an array and a date defined as iVars and the array is retained, whilst the date is not. I checked whether there may be an autorelease hidden somewhere but there are no obvious ones.
The properties are defined...