Tagged Questions
0
votes
1answer
26 views
corner radius on layer and shadows
I have a map view inside a cell and I want it to have corner radius and shadow. I either get only rounded corners OR only the shadow and no rounder corners when i set masks to bounds ON/OFF ...
2
votes
1answer
24 views
Is it possible to make the upper layer recognize a kind of gesture while passing other kinds to lower layer?
I am working on an iPad application where the user can place several editable text boxes on a canvas. Each text box should be able to be moved by dragging it around with one finger. The user can ...
1
vote
2answers
1k views
draw line/point on existing UIView without drawRect?
I created line chart. Now I need to display point on this chart when I tap the screen.
What would be the best method? Do I need to call drawRect method again, draw whole chart with marked point?
I'm ...
1
vote
1answer
75 views
why I get the converse mask with the “CGMutablePathRef” method
I draw a view . The views frame = (0,0,44,44) and the views background color is black.
I want add a mask to make the view looks like this : the mask is a small circle in the middle of the view . but I ...
6
votes
3answers
1k views
how to darken a UIImageView
I need to darken a UIImageView when it gets touched, almost exactly like icons on the springboard (home screen).
Should I be added UIView with a 0.5 alpha and black background. This seems clumsy. ...
0
votes
0answers
264 views
insertSublayer atIndex puts things on top of other layers
I'm using ColorBGView and calling methods inside of it to make gradients. But if I attach two to my layer, it overlaps everything else I attach afterward, and I don't understand why.
...
1
vote
1answer
169 views
NSOutlineView to mimic Photoshop Layers Panel
I have a question about implementing a few specific behaviors in NSTableViews/NSOutlineViews.
WHAT I'M TRYING TO ACHIEVE:
I'm trying to create an NSOutlineView that mimics the behavior of ...
0
votes
1answer
86 views
How to put element on top of other which is in higher layer in Cocos2D?
I have a gameplay scene with it's own layer and other layer which handles all the HUD information (hp bars, turn counts and so forth). I have put the HUD layer on top of the gameplay layer. The ...
1
vote
1answer
82 views
UIView subclass, released before to load it?
I'm trying to show a UIView subclass with:
-(void)pushChatNewMessage:(id)sender
{
NSNotification *not = (NSNotification *)sender;
NSNumber *num = (NSNumber *)not.object;
...
0
votes
1answer
513 views
ios: Screenshot doesn't display mask Layer
I have a view with a certain background color. I am masking this view with the following code:
UIView *colorableView = [[UIView* alloc] init];
colorableView.backgroundColor = someColor;
CALayer ...
0
votes
1answer
180 views
Drawing a layer shadow to a PDF context
I have a bunch of UIViews to which I add shadows via their layers, in their drawRect method:
self.layer.shadowPath = path;
self.layer.shadowColor = [[UIColor blackColor] CGColor];
...
0
votes
1answer
86 views
Ignore parent layer transform
I have a CALayer with 9 sublayers, which occasionally flip vertically and I use CATransform3D to do so. Now, my problem is that, sometimes, I need to apply a transformation to the super layer of those ...
0
votes
2answers
276 views
Cocoa put window in the foreground
I am building a Cocoa Mac application that runs in the background but has a main window.
To make it run in the background I've set "Application is background only" to "YES".
I built a system tray:
...
0
votes
1answer
348 views
UIImageView XY Coordinates with Layer Movement
I move my UIImageView with layer around the screen. When at some point I'm trying to retrieve x and y coordinates of a moved imageView using imageView.frame.origin.x I receive original coordinates not ...
2
votes
1answer
355 views
CABasicAnimation is not animating. Help?
Now before you get all antsy, this is Cocoa I'm talking about, not Cocoa-Touch. With that out of the way, lets begin. I have recently started programming for the Mac. Why? Because it's cool. You ...