Dear All,
I'm currently learning Iphone programing and I'm having some trouble wrapping my mind around CAKeyframeAnimation
I'm using CAKeyframeAnimation to animate objects on the screen like so:
CGPathMoveToPoint(thePath, NULL, start.x, start.y);
CGPathAddLineToPoint(thePath, NULL, finish.x, finish.y);
animation.path = thePath;
anima...
Hi all,
I'm taking a look at this widget, and it appears to be a UIPickerView, however I haven't seen anything provided by the iPhone SDK API that allows for horizontal scrolling only. Mostly it's all done vertically. Also there appears to be a custom graphic around this picker, so it might not be that either.
I'm curious if anyone is ...
I've tried this:
CATransform3D rotationTransform = [[self.layer presentationLayer] transform];
This will not work, since the compiler will throw an warning and an error:
Warning: Multiple methods "-transform"
found. Error: Invalid initializer.
So then I tried this:
CATransform3D rotationTransform = [[self.layer presentationLa...
Hello,
first of all, sorry if that question is dumb but I´m a total newbie in ObjC.
In my iPhone Application, I have an CLLocationManager implementation in my one and only ViewController because I have only one View. No I want more Views in my Application and every View needs the Position Information from the CLLocationmanager.
So, I ...
I am attemting to transition from one UIView to another, when the user rotates the device. This, in of itself, is not difficult. However, since I am displaying completely different content after the rotation, the default animation provided by UIKit (rotating the currently displayed view) is inappropriate conceptually.
Simply disabling t...
I'm loading a PDF file into a UIView and I would like to know how to change the background color or the font color of the PDF. I've tried several things using Quartz, but no success.
How can I accomplish this?
...
The documentation says:
The presentation tree contains the
values that are currently being
presented to the user as an animation
takes place. For example, setting a
new value for the backgroundColor of a
layer immediately changes the value in
the layer tree. However, the
backgroundColor value in the
corresponding laye...
When configuring a Settings.bundle as part of an iPhone application bundle, it's trivial to add minimum and maximum value images to sliders (PSSliderSpecifier), but not simple maximum and minimum text labels.
http://developer.apple.com/iPhone/library/documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Articles...
Hi,
I have an application that, on load, displays a UITableView with the user's data in it.
However, when the user first loads the application (before they've created any data), I'd like to display, instead of an empty table, a background image (with an arrow pointing to the 'add a record' navbar button). Once the user has added their...
How come I can load a local xml file from the main bundle, but I can't load images?
NSString *path = [[NSBundle mainBundle] resourcePath];
This gets loaded (i know because I can trace it)
/Users/me/Library/Application Support/iPhone Simulator/User/Applications/5B888456-40FF-4C72-A2ED-5D5CFA287777/MyApp.app/test.xml
This image never lo...
How to fit UIImage into the cell of UITableView, UITableViewCell (?).
Do you addSubview to cell or is there a way to resize cell.image or the UIImage before it is assigned to cell.image ?
I want to keep the cell size default (whatever it is when you init with zero rectangle) and would like to add icon like pictures to each entry. Image...
I have a UITableView that has a disclosure button on every row. When the table is put into edit mode and the the Deletion control is pressed ("-" sign), the Delete Button shows, however the disclosure button is not replaced, but instead just slides to the left of the delete button.
The apple UITableView guide explains the delegates for...
I'm getting this warning all over the place in some perfectly well functioning objective-c code within XCode. My google-fu has failed me... others have run into this but I could not find an explanation on what exactly is causing it or how it can be fixed.
...
Hi Stackoverflow,
what is the appropriate way to overlay two layers of an UIView for the iPhone? The underlaying view should be active until a button is pressed, then another UIView should cover
everything in a transparent way.
I found the Modal View Controllers, but they simply exchange UI-Views but don't overlay.
Thanks in advance.
...
In cocos2d how would you detect a touch on an image? I'm having a lot of trouble with this so thanks in advance!
...
I am going to use twitter in an app I'm making and am wondering the best way to go about doing this. I have some experience with Rest and have thought about just calling the API straight up and parsing the xml.
My question is what is the best way? I'm seen some Twitter Frameworks such as MGTwitterEngine, but am wondering if it would be...
I built a UIButton subclass that is a very basic checkbox. Everything is working (e.g. I'm getting the events I expect, the drawRect method is called when I expect, etc), but my image isn't drawing. I've checked that my image is not nil and that my images are different.
Code:
-(void)awakeFromNib {
[super awakeFromNib];
[self ad...
Hi,
I have this line of code (splits is an instance variable):
splits = [[NSMutableArray alloc] initWithObjects:[NSMutableArray array]];
This code is obviously wrong (it should be nil-terminated), however it runs fine in the simulator, even though it throws an EXC_BAD_ACCESS on the device. My question is why does the simulator not th...
Here is my code,
egg[0] = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Big_egg.png"]];
egg[0].transform = CGAffineTransformMakeScale(0.0, 0.0);
egg[0].alpha = 1;
[self addSubview:egg[0]];
I want to rotate the egg and simultaneously the size of egg is increasing, my code for this is,
[ UIView beginAnimations:nil context:nil...
i have a google maps link which will open the google map application...@"http://maps.google.com/maps?q=cupertino"...instead of a specific location i want it to open with the current longitude and latitude..would the link be like @"http://maps.google.com/maps?q=ll" like that...or is there a different way to do it?
i am using CLocation fr...