Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

App is not showing local images when run in simulator

$
0
0

Hello guys,

I have this

             <Image Grid.Column="5">
                                    <Image.WidthRequest>
                                        <OnPlatform Android="30"
                                                    WinPhone="48"
                                                    iOS="30"
                                                    x:TypeArguments="x:Double" />
                                    </Image.WidthRequest>
                                    <Image.HeightRequest>
                                        <OnPlatform Android="30"
                                                    WinPhone="48"
                                                    iOS="30"
                                                    x:TypeArguments="x:Double" />
                                    </Image.HeightRequest>
                                    <Image.Source>
                                        <OnPlatform x:TypeArguments="ImageSource">
                                            <OnPlatform.iOS>
                                                <FileImageSource File="ic_action_share_2.png" />
                                            </OnPlatform.iOS>
                                            <OnPlatform.Android>
                                                <FileImageSource File="ic_action_share_2.png" />
                                            </OnPlatform.Android>
                                            <OnPlatform.WinPhone>
                                                <FileImageSource File="Images/ic_action_share_2.png" />
                                            </OnPlatform.WinPhone>
                                        </OnPlatform>
                                    </Image.Source>
                                </Image>

My problem is, if I run it in my IPad mini 3 I can see this image, but if I run the app in iOS simulator the image is not showed. Why???
NOTE: It works in WP and Android simulator. Images from web works well


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>