Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
78 views

How to detect when two CAShapeLayers intersect and to change the color of the intersecting pixels

I have a class called ShapeView which subclasses UIImageView. Within this class, there is a CALayer property called shape which I use to define various types of complex shapes. Using ...
Ser Pounce's user avatar
  • 14.4k
-2 votes
1 answer
26 views

iOS / ObjectiveC: I try to open a viewcontroller with an imageview containing a local image, but it displays a white page

I precise that when I use the debugger, I can see the image in the image view. Why it displays a white page ? (I can see the back button) - (void) openIMAGE:(NSIndexPath *) indexPath { NSString *...
ΩlostA's user avatar
  • 2,571
-1 votes
1 answer
300 views

iOS Button background image not working. (UIButton backgroundImage) [duplicate]

(A) Following line change the image in my imageview. [(UIImageView *)[cell viewWithTag:400] setImage:[UIImage imageNamed:@"sellsign"]]; (B) Following code change only Title of button. [ I ...
Parth's user avatar
  • 19
0 votes
1 answer
61 views

Display image on UIImageView using Web server image

I want to display an image on UIImageView calling the Web server image. Because I want to replace and show it right away. here's the code NSURL *imageURL = [NSURL URLWithString:urlString]; NSData *...
devSimba's user avatar
0 votes
0 answers
37 views

UIImageView Clear Background on Areas Picture Doesn't Cover

I have a rotating set of pictures in my app, and some of the pictures are not the exact size or ratio for my UIImageView. I'd like to have it so that the areas of the image view that aren't taken up ...
user717452's user avatar
0 votes
1 answer
128 views

Fatal error when setting UIImageView in objective c

Hello i have a UIImageview and trying to set the image which was previously saved in a NSArray and then the NSArray is saved into an NSMutableDictionary. Here is the error and the code. Any help ...
stefanosn's user avatar
  • 3,304
0 votes
2 answers
890 views

iOS - how to show multi network images at the same time?

On my UIView, I have 3 UIImageViews to load 3 image's url. As we all know, 3 UIImageView load images has time difference , But I have a requirement: After 3 images all downloaded, then 3 UIImageViews ...
zhouxinle's user avatar
  • 449
0 votes
2 answers
88 views

how to programmatically show a colored disk behind a UIImageView, in swift on an iOS device

I have an icon that I programmatically display. How can I display a solid, colored disk behind the icon, at the same screen position? Icon is opaque. I will sometimes programmatically change screen ...
Doug Null's user avatar
  • 8,209
2 votes
2 answers
1k views

How to cache images in Objective-C

I want to create a method to cache an image from an URL, I got the code in Swift since I had used it before, how can I do something similar to this in Objective-C: import UIKit let imageCache: ...
Didami's user avatar
  • 230
0 votes
1 answer
155 views

UIImageView with cornerRadius is incorrectly cropped

I am trying to add cornerRadius to UIImageView which is rectangle with small height (7pt). UIImageView is incorrectly cropped on the right side. The strange thing is that UIImageView is perfectly ...
Danny's user avatar
  • 4,059
2 votes
0 answers
2k views

Present UIImagePickerController from UIViewController that is already presented

I create a settings/editing type view controller like so: EditViewController *editController = [storyboard instantiateViewControllerWithIdentifier:@"parent"]; UINavigationController *...
kanso's user avatar
  • 750
0 votes
1 answer
47 views

Obj-C - Tap gesture to return RGB color in imageview returning incorrect color?

I'm using the below code to grab the RGB value of the point tapped inside an imageview (the imageview is a color wheel). Tapping the image works perfectly, and an RGB value is returned - however it's ...
Brittany's user avatar
  • 1,419
1 vote
1 answer
326 views

dynamically get the image from different resource folder iOS

Currently I have the image folder the paths is Resource/images and inside the images folder there are several images, I would like to create dark mode using the same image name but the image are ...
Steven's user avatar
  • 83
0 votes
4 answers
1k views

UIImageView frame not placing correctly on the parent ImageView

I have a color palette imageview, in that I want to place a plus icon(imageView) according to the x and y-axis I am getting from the backend. If I get x = 0 and y = 0 the frame of the plus is placing ...
Mohan Ramanathan's user avatar
0 votes
0 answers
30 views

How can I use Android .xml file as an image in my UIImageView

This is my image.xml file content and I want to use it as an image in my UIImageView using Objective-C code. Works on Android, but I don't know how to do it in Objective-C on iOS. Any idea or ...
Swifty iOS's user avatar

15 30 50 per page
1
2 3 4 5
231