uiimageview Questions

4

I am trying to set image to UIImageView. Its working well in older version. In Xcode 9.4.1 But in Xcode 10 When I am trying to type name of image, image suggestion is not showing. Even "Ima...
Outsoar asked 5/7, 2018 at 12:2

6

I am very new to objective c and I'm just getting my bearings. I want to do something really simple but it proves to be quite a challenge: I am trying to display an image into an UIImageView. The ...
Syblesybley asked 23/9, 2012 at 13:36

11

My code works for the most part. The issue I am having is the images start out as square, and change to circle when I scroll the table or refresh it. What am I missing? Here's my code: cell.imag...
Empiric asked 28/4, 2014 at 20:37

7

It looks like aspect fit aligns the image to the bottom of the frame by default. Is there a way to override the alignment while keeping aspect fit intact? ** EDIT ** This question predates auto l...
Gellman asked 14/6, 2012 at 19:22

10

Solved

I am loading a UIWebView and in the meantime I wan't to show a blank page with this activity indicator spinning (siri activity indicator). From what I have understand you can not change the image, ...

4

Xcode 9 beta 6,iOS 11 I downloaded a Instagram logo which was a .png file,and I created a UIButton and UIImageView in the Main.storyboard.The logo image was set as follows: And I set the TintCo...
Atworth asked 7/9, 2017 at 2:21

5

Solved

It is very strange that sd_setImageWithURL is working but got an error in sd_setShowActivityIndicatorView:YES and sd_setIndicatorStyle. Below what I have done. [cell.cellImgView sd_setShowActivit...
Aminopyrine asked 1/6, 2017 at 8:33

3

Solved

I do need to support both storyboard-based launch screens and 'traditional' launch images in a project. Adding a Launch Screen storyboard with an UIImageView pointing to the launch screen seemed l...
Kolva asked 1/3, 2016 at 8:51

4

Solved

What makes an image 1x, 2x or 3x (@1x, @2x, @3x)? How can you make a 3x image?
Impossible asked 26/10, 2014 at 5:8

10

Solved

I need to make a custom search bar like this. The problem I am having is left aligning the placeholder text, as well as placing the search icon in the right. I have a png of the search icon that ...
Opacity asked 4/12, 2013 at 19:9

3

I created a UIImageView and assigned it an UIImage. I set the UIImageView content mode to Aspect Fit. How do I remove the padding from the top and bottom of the image, or how do I resize the UIImag...
Quip asked 10/9, 2015 at 23:8

5

Solved

I am trying to create an ImageView that has rounded corners and a shadow to give it some depth. I was able to create a shadow for the UIImageView, but whenever I added the code to also make it have...
Huntingdon asked 5/1, 2017 at 0:34

15

I have an IBOutlet to a UIImageView, but when I look at the UIImageView doc, I can't see any hints about programmatically changing it. Do I have to fetch an UIImage object from that UIImageView?
Vesture asked 1/4, 2009 at 16:2

2

I want to use webp image in UIImageView my ios project which is in Swift Language. I tried using Matt Thompson library but it's not working with Swift project. I have imported the framework and ...
Guilbert asked 19/8, 2015 at 9:32

8

Solved

[UIView animateWithDuration:30.0f delay:0.0f options:UIViewAnimationOptionCurveEaseInOut animations:^{ v.contentMode = UIViewContentModeScaleAspectFit; v.frame = v.superview.bounds; } completion:...
Sholes asked 3/4, 2013 at 2:5

4

Solved

I have imported a .png image into UIImageView in Xcode and what I want to make is when the image is touched, it will be hidden. But my problem is that the png image contains transparent parts and...
Knapsack asked 13/1, 2015 at 13:24

4

Solved

I have made an app with a certain functionality and a certain graphical look. For example, a custom tableview cell is loaded from a Xib file and has a UIImageView as a background image, loaded wit...
Deafening asked 8/9, 2011 at 6:16

4

Solved

I want to set corner radius with content mode as aspect fit using following code: cell.imgvAlbum.contentMode = UIViewContentModeScaleAspectFit; cell.imgvAlbum.clipsToBounds = YES; cell.imgvAlbu...
Gamekeeper asked 10/6, 2015 at 4:50

7

Solved

I have two labels that are stacked. If I want a horizontal line between them, is there any other way besides using an image with a UIImageView?
Alkali asked 15/3, 2010 at 16:10

2

Solved

I'm trying to automatically show the useful part of a largely transparent png in an iPhone app. The image may be say 500x500 but it is mostly transparent. Somewhere within that image is a non-trans...
Wain asked 2/10, 2011 at 7:21

4

Solved

I'm trying to center a UIImageView width-wise in a UITableViewCell with the following code: // self.cover_image is a UIImage variable // cell is a UITableCellView UIImageView* backcover_imagev...
Manchukuo asked 17/6, 2011 at 5:33

3

Solved

I am trying to make a UIImage view clickable, but I am having no luck. What is the best way to complete this task? The error I am getting is "Cannot convert value of type '() -> _' to specified typ...
Confidence asked 10/3, 2017 at 23:21

1

My issue is: I have several projects/targets with shared xcassets. What I want to do is to set images inside storyboard without code. As I was able to find, there are no way to set image in storyb...
Sixteenth asked 20/12, 2016 at 15:7

35

I have an app that supports iOS8 and later, built in Xcode 7 and I am using a XIB for a Launch Screen (I do not have launch images). The view contains a single UILabel with the app version, and 2 U...
Unlock asked 15/9, 2015 at 6:29

3

I'm very new to Xcode (2 days) and so far I'm finding it fairly frustrating. I'm just trying to add an image to my app's ViewController via he Storyboard, but it does not appear on the simulator. C...
Eleusis asked 18/3, 2015 at 3:0

© 2022 - 2024 — McMap. All rights reserved.