Avoide swipe right and swipe left into pushed Segue [closed] - xcode

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a standard MasterDetailApplication for iPad.
From the DetailViewcontroller (if the iPad is in Portrait mode) the Segue "Image View" will be pushed. "Image View" has the size: iPad Full Screen.
With the swipe right or left, the MasterView will appear on the left side of "Image View". How can I avoid this?
Allpication will return to the Master-Detail View if the iPad is in Landscape mode.
Thanks!

In UISplitViewController there is a property to Specify whether the hidden view can be presented and dismissed via a swipe gesture.
The property name is presentsWithGesture
self.splitViewController.presentsWithGesture=NO;
Setting this property NO will disable gesture recognizer

Related

xCode UIView with UITableView [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm trying to make an app that has a calendar that takes up about 2/3 of the visible screen, and then under it are events that correspond to the selected day.
Basically it will look something like this: Calendar App
Should I use a UIView for the calendar, and then a UITableView for the corresponding information?
Also, I want the entire page to scroll when users scroll through the events in the tableView (not just the information in the table view). Would I need to wrap the entire page in a scrollView to accomplish this?
You don't need to have a UIScrollView. You can simply hide the calendar (with animation) when the table view scrolls to a certain point.
Another simpler solution is to put your calendar in the first table view cell, so it would scroll along with your events. So this one just requires one UITableView that fills up the whole screen.

UIViewController moves when resizing objects on it [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
A quick one - I know that this has been asked a number of times but I can't find the answers on here. I have started a new project in Xcode and when I resize objects they resize from the other side of themselves, the controller moves with it etc. I know it is a simple setting somewhere but I can't find it - any helpers?
Your view controller is probably has auto layout enabled. When you resize one view, the others are resized according to their constraints.
To turn off auto layout: Select the view controller in IB, and in the properties pane on the right, open the first tab, and uncheck the Auto Layout checkbox.

The very basics - Hello Image in IOS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
The answer given to How do I create an iPhone app with background and rotating images? says, "then on Interface Builder or the Storyboard, from the Library drag an Image View (also called UIImageView) and place it on your canvas,"
I'm new to IOS. How do I "from the Library drag an Image View"? I've looked around through the interface, and do not see an opening to the Library from which I can drag an Image View. On the LHS of the screen there is a Frameworks folder that lets me select a UIImageView.h and try to drag it (I can't drop it on the storyboard).
How do I navigate to and manipulate the Library in Xcode so I can drag a UIImageView / Image View onto the storyboard?
Hit Cmd+1 to show the project navigator
Select the storyboard file to open it
Hit Ctrl+alt+Cmd+3 to show the object library (appears at the bottom left corner)
look for the Image View item in the list (you can filter the list using the search field)
drag this object into the canvas or the document outline

Dont hide NSMenu after click [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Have a way to I block hide the NSMenu after click.
Thanks.
No, I've written several menubar apps and I've found the only way to disable menu-closing is to subclass NSMenuItem and do your own event handling. Unfortunately that also means you have to use a custom view, do your own title drawing, menu highlighting and "flash" animation.
Another option is to switch to a view based menu item. Then in your view class, respond to - (void) mouseUp:(NSEvent*) event and implement your custom behavior. The menu will not close on the click, as the event is no longer forwarded up the responder chain to the menu item.

Hidden Features of Interface Builder? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
What are some uncommon or "hidden" features of Interface Builder you wish you would have known about when first learning Xcode + Interface Builder?
Edit:
Xcode specific tips here.
This question is specifically concerned with the GUI and not so obvious features of Interface Builder. And only tangentially related to Xcode.
Sometimes it gets quite difficult to select an interface element that's buried in a deeply nested hierarchy of other elements (like a cell in a table column in a table view in a scroll view in the content view of a window).
Pressing shift while right-clicking on a view displays a nicely sorted stack of items to select.
You can use the mouse to measure the distance in pixels between interface elements: Select an element, like a button, then hover the mouse over another element and press option. This also works for subviews, like scrollers in a table view.
After customizing a view or building a view hierarchy you can drag that view back to the library to save it in the current state. You give it a name and description. It will show up in a "Custom Objects" section and can be reused in other nibs.
I only found the Xcode User Defaults Reference the other day. It has a good number of things not available in the preferences UI.
Interface builder has plugin architecture for custom views.

Resources