I am trying to draw an image and some text on a UISlider thumbnail. I have the following code that works fine on iOS 12 and below, but does not on iOS ...
I am trying to draw an image and some text on a UISlider thumbnail. I have the following code that works fine on iOS 12 and below, but does not on iOS ...
I have the image view which has fixed size. But I want to fit every size of image into this without stretching. I tried this In method resizeImage, ...
designer give me picture like this But when I use drawInRect API draw the picture in context, the picture is like this The size of the rect is jus ...
Thanks for checking out my post. So on line image!.drawInRect(rect!), I get the EXC_BAD_ACCESS Code 1 error and I can't figure it out for the life of ...
I'm trying to draw text on a context, and it works. I'm trying to set an UIfont to this text but it doesn't work. The text size remain the same. Her ...
I have a UIImageView that i draw on it points . I store my CGpoint in an NSArray with a capacity of 100. Every time i receive a new CGpoint i want to ...
I am trying to generate a pdf inside my app. To draw a string I'm calculating the size of the bounding rect for that string using boundingRectWithSize ...
I have question about correct using UIImage and method drawInRect. I use iPad 4,Xcode Version 6.1.1, IOS 8.1.2 and I used ARC and I have tried withou ...
Create a simple app, and can't do it without an error I don't really know why bg.drawInRect doesn't cause an error when player.drawInRect causing? ...
In my project need to add uiview in UITableViewCell. I can add UIView using following code in UITableViewCell class. Is this a efficient way to sho ...
i'm using the following code to draw lines over an imageview's image, Output You can see the gaps/spaces between the dots. I need the output sho ...
I'm kind of newbie in Objective-C and I need some help My problem is that I have a subclass of UITextField, and I want to set the placeholder font to ...
I have a method below to draw a text (the text is "0%", font size = 30) in a RectFrame (width = 170, height = 30): I can not post the image result ...
I have a code which worked just fine until I built my project with iOS 7.1. Before, the text correctly showed on PDF page. But now, everything in f ...
Here's exactly how to draw a UIImage in to context: No problem. However, say I have a CGImageRef which was built up somehow. I want to draw it i ...
I have been using PaintCode to draw some of the graphics within my app, some of the drawn elements have text that is drawn using "drawInRect". The tex ...
I was using a library (SGInfoAlert) which uses deprecated code drawInRect:r withFont:. I tried changing some codes to fix it in iOS 7 but the text doe ...
So I have some code running in an NSThread that creates, in a loop, a whole bunch of NSImages. A small section of each of the images is drawn into ano ...
I wrote an interface "myDrawInRect" to replace the orginal "drawInRect" in NSString. the code is like following: .h file: .m file: I invoked m ...
I encountered a problem when I pinch, pan or rotate a UIImageview in drawInRect, the transform is not being preserved. How can I preserve the transfo ...