quartz-core Questions
2
Apple deprecated some of the APIs for macOS screen capturing starting from Xcode 14.3. For example: CGDisplayStream.showCursor is marked as deprecated in macOS 13.0-13.3:
However, when I check tha...
Marrakech asked 5/5, 2023 at 11:23
3
Solved
My application is based on spring boot.
I want to create a task which should be run only once after application has been started.
Currently, I am looking into two solutions:
Using @Scheduled an...
Micrometeorite asked 10/8, 2016 at 6:57
15
Solved
I want to have a thin gray border around a UITextView. I have gone through the Apple documentation but couldn't find any property there. Please help.
Become asked 15/4, 2010 at 16:31
7
Solved
I want to make a UIView or UIImageView that is a circle. Or a circle that i can change the size of using a slider, and the color of with a pickerview.
Execrable asked 10/12, 2009 at 4:17
4
Solved
I know CAGradientLayer doesn't support radial gradient at the moment and only has option of kCAGradientLayerAxial.
I want something like below:
I have looked around for this issue and found tha...
Seagrave asked 13/11, 2014 at 11:1
8
Solved
This is not the same as the countless questions about converting a CMSampleBuffer to a UIImage. I'm simply wondering why I can't convert it like this:
CVPixelBufferRef pixelBuffer = (CVPixelBuffer...
Landlocked asked 31/3, 2013 at 5:49
5
Solved
I have a PDF document and would like to extract all its text.
I tried the following:
import Quartz
let url = NSBundle.mainBundle().URLForResource("test", withExtension: "pdf")
let pdf = PDFDocume...
Sphacelus asked 15/5, 2016 at 16:27
8
Solved
If I draw my chart inside - (void)drawRect:(CGRect)rect is just enough to set [_chartView setContentMode:UIViewContentModeRedraw] and this method will be called when device changes it's orienatati...
Histrionic asked 10/7, 2014 at 18:31
9
Solved
I'm trying to customize the textfield for the UISearchbar. The picture below shows my half done work.
I have subclasses the UISearchbar and called it from my view controller. I'm trying to remo...
Charterhouse asked 19/10, 2012 at 4:12
2
Solved
Basically i want to implement color replacement feature for my paint application.
Below are original and expected output
Original:
After changing wall color selected by user along with some th...
Peridotite asked 26/2, 2013 at 5:30
2
Solved
I'm looking to add multiple drop shadows with different opacities to a view. The specs for the shadows are as follows:
Y-offset of 4 with blur radius of 1
Y-offset of 10 with blur radius of 10
Y-...
Tripping asked 12/8, 2014 at 3:39
3
For an animation timing algorithm I need to supply a path as the curve. Probably a bezier curve with control points on both ends.
The problem is that it seems not possible to calculate points on a...
Millais asked 11/12, 2013 at 14:7
2
Solved
I'm trying to create a label (or any other view for that matter) with one rounded corner and a stroke/border. I can achieve the former using the following code:
UIBezierPath *maskPath = [UIBezierP...
Deterioration asked 21/8, 2013 at 12:13
7
Solved
I know how to create and animate a view like the one in the Share sub view of the new app store app that comes with iOS 6+ (see attached screenshot), but I don't know how to add that nice coloring ...
Gilmer asked 13/2, 2013 at 13:29
0
I've got this Python code:
import Quartz.CoreGraphics as cg
region = cg.CGRectMake(0, 0, 100, 100) # You can also use cg.CGRectInfinite for the full screen.
image = cg.CGWindowListCreateImage(regi...
Pimentel asked 29/5, 2017 at 20:9
3
I'm trying to draw a line between two points using a CALayer. Here is my code:
//positions a CALayer to be a line between a parent node and its subnodes.
-(void)makeLineLayer:(CALayer *)layer lin...
Ash asked 2/2, 2014 at 19:56
5
Solved
I have a simple view (left side of the picture) and i need to create some kind of overlay (right side of the picture) to this view. This overlay should have some opacity, so the view bellow it is s...
Widget asked 12/5, 2013 at 22:39
2
Solved
I am trying to add gradient to a UIView programmatically but it is not working. It just appears to have no color at all. I have attached the relevant code as well as a screenshot. Notice the bottom...
Marinna asked 16/7, 2016 at 11:11
3
Solved
Hello, I want to add this kind of shadow for my NAvigationBar How can I do that.
This is how I tried to add shadow.
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] for...
Mcintyre asked 8/12, 2015 at 9:27
3
Solved
As the title says, I am trying to give to some UIImageViews a fading out effect as they get closer and closer to any of the four edges of my UIScrollView. Since the user can drag the UIImages, if h...
Verbalize asked 31/5, 2013 at 21:33
0
I found this line confusing?
When configuring a mask, remember to set the size and position of the mask layer to ensure it is aligned properly with the layer it masks.
What align means here? D...
Logician asked 22/10, 2015 at 10:20
2
Solved
I have a game where users can create custom levels and upload them to my server for other users to play and I want to get a screenshot of the "action area" before the user tests his/her level to up...
Nenitanenney asked 8/9, 2013 at 2:23
3
Solved
I'm trying to adapt an example provided by Apple in order to programmatically draw stars in line, the code is the following:
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineW...
Rum asked 9/12, 2011 at 12:55
2
How can I call non-public iOS functions and acces non public properies from Swift? Specifically, I would like to use one non-public class in QuartzCore framework.
One solution that came to my mind...
Collier asked 27/1, 2015 at 15:52
2
I'm trying to get my UITextView's corners to be masked by the rounded corners of the grouped UITableViewCell that contains it. Here's a screenshot of the cell as it currently stands
Here's some...
Peritoneum asked 20/2, 2013 at 16:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.