I have a custom UIView subclass that i'm trying to use as a header for one of my grouped tableview sections. I save an instance of that view in the tableViewController and use that to return the height for the header section as well as the view itself. the problem is that somehow that instance variable changes from a UIView to a CALaye...
There's the option to go the long way, if an receiver class conforms to the NSKeyValueProtocol:
[myInstance setValue:[NSNumber numberWithInt:2] forKey:@"integerProperty"];
or the short way:
myInstance.integerProperty = 2;
what's the point of this KVC method? When is this useful?
...
I wonder if they have any fancy tools that detect usage of hidden API. Does anyone know?
...
Hi, I have a landscape view which is activated via listening for orientation notifications and then presenting a modal view controller.
However, it's giving me some grief.
It seems whatever I do I just can't seem to get landscape bounds.
super.view.bounds is {{0, 0}, {320, 480}} portrait, even though it is drawing at the correct orien...
Apple says that CIFilter is available in iPhone OS. However, on my mac I couldn't find an CoreImage framework to link against.
filter An optional Core Image filter
object that provides the transition.
@property(retain) CIFilter *filter
i.e. when I try to do something like this, it crashes because CIFilter is unknown:
[trans...
Hello,
how do I change the label "No Results", when using a searchDisplayController?
Regards
...
Apple's iPhone apps such as Music and Contants use a search bar in a UITableView. When you scroll down so that the search bar moves down, the empty space above the scroll view's contents has a light gray background color (see screenshot).
(Notice that the search bar has a slightly darker edge line at its top. This is not there for the...
The CAMediaTiming Protocol defines a timeOffset property. Now, they say it's a time offset. It sounds straightforward, but howefer, when I set it to 15.0 for example, the animation still imediately starts. The timeOffset doesn't seem to have any effect.
Maybe someone can point that out a little bit?
...
For my understanding, beginTime can be used to say "hey, start at exactly 12:00 'o clock". But how would I tell this with an CFTimeInterval type? I thought that this one is nothing more than a kind of "float" value to specify seconds.
Or what else would be then the difference to the timeOffset property that is specified in CAMediaTiming...
When you drag an iphone GUI element like a list, it scrolls in a physics correct way, and also has a nice bounce effect at the end.
I would like to write a GUI element in my game, without using UIKit. I wonder where is the code implementing this, and if I can use it instead of trying to write something similar.
Any ideas?
...
Timespace problem: You make a big hierarchy of views, and give every layer a different speed value. Now all the Timespaces are messed up. At the bottom of the hierarchy you don't know what kind of time distortion you have. -10%? -90%? +50%?
UIKit somehow has to calculate the speed in the hierarchy when animating. So I wonder if there's...
They say:
The timing protocol provides the means
of starting an animation a certain
number of seconds into its duration
using two properties: beginTime and
timeOffset. The beginTime specifies
the number of seconds into the
duration the animation should start
and is scaled to the timespace of the
animation's layer. The...
What do I need to do programatically in order to use the same background image for UIButton of variable size? (commonly known as 9-slice scaling or scale-9)
...
I am trying to work directories. Unfortunately i get a non-writeable directory when I run NSSearchPathForDirectoriesInDomains. What I get is:
/Users/me/Library/Application Support/iPhone Simulator/User/Documents
When I run other people's examples I get:
/Users/me/Library/Application Support/iPhone Simulator/User/Applications/6958D21C-...
I am not very sure, but I would bet on layer-backed views. That is:
Layer-backed views use Core Animation
layers as their backing store,freeing
the views from the responsibility of
refreshing the screen. The views need
to redraw only when the view content
actually changes.
Or is it the other method of integration?
...
As noted in the Apple developer docs for showFromTabBar, it says:
The style of the animation depends on the style of the toolbar, not the receiver.
When I use this method as opposed to the showInView method, it slides in from above, not from below.
I am using showFromTabBar because if I don't, the cancel button is partially untouc...
Hello. I am getting bald quite quick and need help!
I am writing an app which needs to access directories. I was hoping to get a path of the form
/Users/me/Library/Application Support/iPhone Simulator/User/Applications/6958D21C-C94B-4843-9EF1-70406D0CA3A3/Documents.
However my app is giving me /Users/me/Library/Application Support/iPho...
A UIView has a CALayer. That's pretty sure. But both seem to provide something that means the same thing.
If I'd set clipsToBounds=YES, would this also set the layer's masksToBounds=YES? Why different names? Anyone knows?
...
indexPath.row returns null in tableView didSelectRowAtIndexPath:indexPath
I thought it was supposed to return the row selected.
When i look at indexPath in the debugger it (corectly) returns: "2 indexes [0, 0]"
Am I missing something?
...
I'm working on modifying some existing heavy-handed code that simply calls [tableView reloadData] on any change, to using more specific table updates with the insert/delete methods.
However, I'm getting some really bad behavior in doing so. Previously, as one would imagine, when the table loaded, it only requested cells for the rows th...