iOS bar button icon image sometimes missing - ios

I have weird problem with iOS 8 application: there is a bar button image with some icon.
Problem is that the icon is sometimes shown, but sometimes is missing (but item remains clickable - without any visible appearance, I just know it's there, so I know where to click).
I haven't seen any pattern that would suggest where could be problem, it just disappears and appears randomly.
Anyone had similar problem?
I have the problem in simulator and on device.

Check,
if the name of your image that you put with your button is same with the targeted image files you put in your assets files
Check the view layers. You might put the image button layer under some other view that block your button image

Related

Xcode 14: Does anyone know how to remove the blue tint on lines where changes have been made?

Problem
Within the Xcode 14 IDE, I have been facing an annoying issue where the lines I am editing tint blue. I have disabled Show Source Control changes within Preferences, yet it does not remove it. I have attached an image to show you what it looks like. I really hope you can help as I am finding the blue tints everywhere in my code very distracting and annoying.
Just ignore the code - it's just to show what happens when changes are made in the editor. šŸ˜Š
There's a button next to where you can show the canvas, 2 arrows pointing in opposite directions. Try pressing it.
In case if the icon mentioned in accepted answer is missing, go to View in Xcode top navigation bar and click Show Code Review.

Right UIBarButtonItem shows a vertical line on navigationBar

I have build an application which uses the WebView.When application launch and comes to WebView controller then before WebView complete its loading the ui bar button item shows only the custom icon but when WebView complete its loading then a vertical line show on the right side of custom icon.
This happen only on iPad Air 2 version 10.3.2 or below this version.
Here are the screen shots
before WebView completes its loading
And after complete its loading
I have encountered a similar behaviour in iOS 10.X and spent some time to find a reason of the problem. So I have decided to describe it in more details.
Sometimes we can unexpectedly discover a vertical line at right side of UIBarButtonItem in our applications. This vertical line donā€™t visible in Storyboard or in iOS 11+, but it may appear unexpectedly in iOS 10.X, e.g. when UIAlertController was displayed.
The reason is that Title field of UIBarButtonItem has "Item" value by default. I donā€™t know as you, but I sometimes forgot to clear this field ( not now, of course ;)) So, if you donā€™t want to see your UIBarButtonItem with title and you donā€™t want to see the unexpected appearance of vertical line at the right side of your button, keep Title field is empty.

Xcode 8.3 settings

I am new to Xcode and have two questions.
Main.storyboard: I want to see the whole iPhone, but now 2/3 of the screen is a white background. How to fit it to show only the whole device ? link
I noticed that when I get an exception, there are some new windows opened in Xcode and I just can't get back to my previously opened stuff without manually closing these new windows and starting again which is pretty frustrating; how can I prevent it ?
Additional explanation: first problem
a) I set zoom and resize the window (upper image)
b) I click button in upper right corner (middle image)
c) Now I click this button once again to go back - but everything gets messed up and I need to manually resize it again here
I just want my device to be fixed as it is in AndroidStudio for example.
The solution for your first problem is like right click on the main.storyboard then you will see a menu of options where you can set the appropriate zoom level
Please provide some screenshots for the second problem.

Icons for iOS Action Extensions Disappearing After Share Button Menu Disappears

I've been working on a couple of iOS action extensions for a while, but I have noticed an odd behavior I was wondering if anyone else saw. In short, after you install and turn the extension on from the share button menu and leave the menu, it disappears from the menu.
More specifically, when you first install the extension, you expect you have to press the share button, scroll the bottom bar menu (for the action extensions) all the way to the right, press the "More" button, toggle your extension on and then press done. At that point the icon for the extension will appear and you can use it. However, the next time you want to use the action extension, the icon will not appear and you have to repeat the process, even though when you look in the "More" menu, the toggle switches for your app are already flipped on.
I wish I could add images to further elaborate here, but I can't because of StackOverflow's rules.
I have not been able to find any information on this any where, so I was hoping someone here has noticed this behavior or not. Any help on resolving this would be greatly appreciated.
This has been a bug in iOS 8.3, and has been acknowledged by Apple.
Fixed in iOS 9.
Issue on OpenRadar
How to solve:
The new share extension is NOT visible in the default list, and is CHECKED in the ā€œMoreā€¦ā€ list. Changing any of the switches and tapping Done will show the new share extension in the default list.

delay after clicking blackberry application icon

i can't seem to figure out the following situation:
when i i click on my blackberry app icon (within the simulator), the application pops up quick, no problems. however, when i take that same code and push it to my blackberry, there is a few seconds of wait time after the icon has been clicked.
can someone tell me how to minimize the delay? the first screen is NOTHING but an image inside a image field. i wanted to create a "splash" screen and i just show you a simple image.
after i click on the app icon (on my phone), i notice that there is activity because you see the arrows in the upper right-hand corner moving. but to the regular non-techie user, they won't know that the application has been started and they will just keep clicking the icon over and over again.
again, i click on the app icon and there is about a 3 second delay just to the image contained within the project folder. so we are not fetching the image from a remote site.
the simulator shows the image fast, but the phone creates a delay. any ideas how to minimize the delay after app icon click?
thank you.
ac
I figured it out. i just moved the instantiating and loading of several objects to a different class and later called those lines of code with an invokeLater method. my first screen only contains the image itself and the other class contains the rest of the code.

Resources