Questions tagged [uiimageasset]
48 questions
0
votes
2 answers
Load deafult image if Image.asset not found the image
I am trying to load an image with this code
CircleAvatar(
child: Image(
image: getImage(snapshot.value['img']),
),
),
but if the image is not founded I want to replace it with a default image and I try this code
AssetImage…

ari.asapp
- 1
- 2
0
votes
1 answer
How to search the contents which created in Xcode 's Images.xcassets?
For a example , i created a color set in Images.xcassets , and i want to find all the reference to this color (include code and xib etc) , but the Xcode 's search function seems can't do this kind of work , Can i get all the refrences to the…

ximmyxiao
- 2,622
- 3
- 20
- 35
0
votes
2 answers
How do I call a Network Image type in a ListView?
I have a gridView that should display a network Image. All its elements are defined in a List with multiple elements. It calls an AssetImage right now but I want to change it to a network Image. This is the declaration of the elements of the list.…

Simran Aswani
- 1,236
- 3
- 19
- 42
0
votes
3 answers
right picture resolution for image asset?
I am a beginner in android programming and created a tic tac toe project for learning purposes. I used Android Studio as IDE. The game is finished now only the launcher icon is missing.
In order to create different sized launcher icons, I just go…
user12465043
0
votes
1 answer
Is it possible to change the priority for the ImageAssets used in the xcode project
Im working on an iOS project which has multiple targets.
We have an global asset named Images.assets within a folder GlobalResources and all the targets in that projects are selected. (ie., This particular image asset is been included to all the…
0
votes
1 answer
Image assets how to specify different images for portrait and landscape
xcode project has image assets we can specify image for both iPhone and ipad for a single image name
Is it possible I can specify image for portrait and landscape for iPhone and iPad separately
Any help is welcome

dinesh R
- 379
- 3
- 11
0
votes
1 answer
what are the available devices for 1x,2x and 3x
I was trying to find list of iPhone & iPad devices by screen resolution 1x,2x and 3x.
Searching the stack overflow doesn't give any clue on following things
is there any need to support 3x images for iPad because no iPad seem to support 3x and Other…

Elstine P
- 340
- 4
- 22
0
votes
1 answer
what is the best to way to get the vector image for asset catalog
I am aware xcode has introduced an option to provide a vector image(.pdf) so that we don't have to give a image for each dimension such as 1x,2x,3x
This saves lots of time and its really a good feature
But how to go about making an vector image in…

Sharath
- 275
- 1
- 18
0
votes
0 answers
How to crop my App image like iPhone photo gallary
I have developed a chat application in which user can share image.
In whatsApp when we select any image it is opening iOS default cropper .
I want to do same for my App.
Is there any way to open native croper while select image.

guru
- 2,727
- 3
- 27
- 39
0
votes
0 answers
UIScreen.mainScreen().bounds shows unexpected value on phone, but not simulator
I have an iPhone 6 that I'm developing code for in Xcode and I am having problems with reported screen size, my phone reports the wrong value!
UIScreen.mainScreen().bounds:
Actual Value - 375 x 667
Reported Value (Simulator) - (0.0,…

J-Dizzle
- 4,861
- 4
- 40
- 50
0
votes
0 answers
Could not load "images" referenced from a nib in the bundle with identifier "com.myapp"
I'm having a little strange problem. After update Xcode to the seventh version (I suspect that is related with this) I lost all my images on my assets catalog.
The app isn't loading the assets on simulator neither devices, all the images loads fail…

halbano
- 1,135
- 14
- 34
0
votes
2 answers
Images in IOS to support 1x, 2x, 3x
In WWDC 2015, they say that we shall use 1x,2x,3x images in assets because iphone 6p will only download 3x image and ignore other. I have watched about App Thinning.
I would like to know whether it is only for ios 9 or below also?

Khant Thu Linn
- 5,905
- 7
- 52
- 120
0
votes
1 answer
How to slicing image and make it stretchable with image assets
stretch image right and left side
centre arrow remain as it is
i tried with it but centre down arrow position is not properly set by me.

Gaurav Patel
- 957
- 1
- 6
- 16
0
votes
1 answer
CALayer getting 1x image from Images.xcassets for iPhone6 and 6Plus
Following code i am using for add CALayer into UIScrollView Layer.
UIImage *icon = [UIImage imageNamed:@“testImage”];
CGFloat imageWidth = icon.size.width;
CGFloat imageHeight = icon.size.height;
CGFloat y = 10;
CGFloat x = 10;
CGRect rect =…

Abhishek Sharma
- 3,283
- 1
- 13
- 22
0
votes
1 answer
Image assets not working correct in iOS [Big issue]
I used image asset for Image management in my app. My app supports iPhone4,iPhone5 & iPhone6, iPhone6 plus devices.
but when I uses image assets then what resolution need for @2x image by which both iPhone4 & iphone6 works?
My try for view…

user2526811
- 1,233
- 4
- 20
- 54