Xcode Obj C - back button gone on iPad - ios

I'm having a problem in xcode where I'm using a UISplitViewController. After opening the left pane/table view, selecting a row in the table View, and then closing the pane the back button disappears. I'm not sure when this started happening, perhaps after updating to Xcode 7. I tried fixing it with code - changing, removing or adding code that would show the back button, nothing so far have worked. That being said, I don't think this is a problem that can be solved using code, this is a standard controller (the UISplitViewController that is) that's bundled with Xcode, and it should just work out of the box. Anyone heard of this problem before, or anyone who is aware of a fix?
Just to be clear, if I open and close the left pane only, the back button does not disappear, it will still be there. It only happens when I open the pane, select an item/row, and close it. The pane can still be pulled out/opened by swiping from the left side of the screen towards the center after the button is gone.
Here is a snippet of the navigation bar of the ipad simulator after the back button is gone:
EDIT:
I forgot to mention that I currently have changed the tableViewController to a viewController for MasterViewController.m (I started this project from the UISplitViewController template that's bundled with Xcode, which uses a tableViewController by default)

Related

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.

Calabash Tracking Of Closing A Side Menu

Sorry for the confusing title but I can't get my head around to find the right words for this scenario:
We have an iOS app that has a top-left menu button. If you tap it, a side menu opens and most of the screen (incl. the menu button) are slid to the right.
for Calabash I need to track the ID of the view that is slid to the right. Any tap on the whole slid-to-right view area will close the menu. The menu icon itself seems to have no other function than being a visual help and its accessibility ID cannot be found by Calabash while the menu is open.
Does anyone know how iOS handles this kind of navigation? To sum it up:
We have an initial view open with a menu button.
If button is tapped, menu slides in from left and current view is moved to right (mostly out of the screen).
You can now tap any of the remaining visible area of the initial view and the menu will close again (the menu button seems to receive no touch during this).
I need to figure out to what assign an accessibility ID to so that Calabash can 'imitate' a tap on the slid-out, initial view to close the menu.
Have you tried using the Accessibility Inspector in the Developer Tools of Xcode? This might help you in seeing whether or not you can interact with the slid-out menu.
Also if you haven't tried using the calabash command tree - I'd give that a go as well. For that open the menu you're trying to interact with use the command calabash-ios console > console_attach > tree.
You will be able to see the whole view hierarchy here, you can even run tree before and after the menu pops out to see if it makes a difference.

Menubar in UIWebview not showing up on first longpress action

So this problem is a little tricky. Basically, I found that the menu bar won't pop up in a UIwebview the first time you long press on a word. It would show something like this:
Example img
The words are selected, but the menubar is now showing. However, the second time you longpress on another word,the menubar just pops up fine.
Example img
Also, if you tap anywhere in the UIwebview or scroll it before longpressing on a word, the menu bar also shows up. It's just when the long press action is the first action you have with the UIwebview, the menu bar won't show up.
I checked this problem with some other third-party web browsers on app store (firefox, chrome). The same problem exists. However, Safari does not have this problem. Also, my iPad 2 does not have this problem either. But my iPad air does, so do the xcode simulators.
Not sure if I'm describing this problem clearly, thanks in advance for anyone that helps.
This problem is kind of Bug in iOS 9 web view
Me and my colleague was having same discussion yesterday.
Also it is only on Web view,Messaging apps works fine

Xcode run button disappearing

I have a problem with Xcode 7.1.1. The upper part of the UI (the container of the run button, manage scheme etc.) keeps disappearing when I close another opened project. If I have two project opened, closing one, the problem occcurs. I can't bring it back, the only option that I have is to close Xcode and open it again. Here's some screenshot of the page and the view menu.
The toolbar is visible, you can see it in the second and third screenshot, but its content it's hidden.
Anyone having the same problem or some solutions?
XCode will open the project with the interface configured the same way as the last file that was opened. If your interface is opening with the toolbar and project navigator minimized it means that you double clicked a file and opened it in its own window. XCode thinks that this was the last file opened so it uses this as the default.
To resolve right click on the top of the window and selecting "show toolbar"
You can also hide same way by right clicking and hide toolbar.
Keyboard shorcut: cmd + alt + T
Or in the menu: View>Show Toolbar
For showing:
... and for hidding:
In XCode Preferences. You can set the behaviour of the toolbar. I suspect,it must be set to hide.
i used this way and worked for me
View -> Show Toolbar

Xcode Utilities rigth panel don't lord information anymore while in Storyboard

I have a weird problem, and can't figure it out.
The comme from the storyboard in XCode Version 7.0 (7A220).
When I display my main.storyboard clicking on the file, everything appear, but if I select UI elements or ViewControllers nothing get displayed in the Utilities rigth panel tabs. It used to work fine a hour ago.
Here are the screenshots:
This is the Main.storyboard opened in Xcode, and I selected a random UIView.(It does the same with any kind of elements)
Now, as you can see, nothing is displayed here. Usually I can access the element properties...
This one is the only one who still appear, but it loads weirdly and takes time.
I don't have another computer for testing, and I can't work without this, so if you have any idea!
Restarting computer or Xcode never solves the problem.
I did two things, don't know which solved the problem.
First thing was to go into Window > project > 'yourProjectname' and the press the "delete derived data" option.
Second thing was to close the concerned tab on Xcode.
Hope this can help

Resources