This question already has answers here:
SplitView like Facebook app on iPhone
(10 answers)
Closed 9 years ago.
I was wondering if anybody has an idea on how to do the sliding segue/animation that the Facebook Iphone app uses to reveal it's menu. I like that the entire NavigationController can slide over to reveal the menu but I can't find any tutorials that explain how this is set up. Any body have any ideas?
I wanted to do the same thing as you and came to the conclusion of using this SWRevealController.
Its a great and easy class to use and the developer implements several examples fro you to look at or derive your project from... Its great !!! :)
If you have any questions of how to use it.. dont hesitate to send me or John Lluch (the developer) a message on how to use it.
Related
This question already has an answer here:
Status bar back to previous app from multiple open apps
(1 answer)
Closed 11 months ago.
Is it possible to hide the backlink button on ios? Specifically I mean the button in the top left you see after tapping a deeplink in one app that opens another app. In the image it shows as "Deeplinks1".
This feature is built into IOS. There is no way to disable this feature as it has nothing to do with flutter or even programming with swift.
This is default iOS behavior, and hiding backlinks is not recommended. Even if you achieve it in whatever way, the app will be rejected on apple store
This answer could not be the best, but I used it before.
When you pop a page, the os(doesn't matter ios or android) will show a back button.
In this case, I used a property in the parent that tells which page should be rendered and totally forgot the pop method. for example:
_page == 1 ? pageOne() : _page == 2 ? pageTwo() : errorPage(),
I hope that this helps you.
This question already has answers here:
Prevent screen capture in an iOS app
(9 answers)
iOS Detection of Screenshot?
(7 answers)
Closed 3 years ago.
Is there any possible way to make a blur ViewController in iOS when a user tries to take a screenshot?
Or any option that executes a function before the screenshot is saved?
Not really, but even if there was one, this doesn't prevent users from taking pictures of the screen so it doesn't protect the data all that much.
What you want cannot be achieved using any public APIs. In older iOS versions it was possible to rely on touching the screen to show sensitive information, but since iOS 7 taking screenshot no longer cancels touches.
Relying on observing NSNotification.Name.UIApplicationUserDidTakeScreenshot notification is also out of the question, since that notification is posted after the screenshot is taken, not before - it follows iOS naming convention with DidTake statement, and there is no WillTake equivalent of this notification.
The solution linked in comment - ScreenShieldKit - also seem to be useless, since this post on Information Security subforum claims it indeed relies on canceling touches which, as mentioned before, no longer works.
At any rate: no, currently there is no known way to prevent screenshots from being taken, using publicly available APIs.
This question already has answers here:
Making a drop down list using swift? [closed]
(5 answers)
Closed 7 years ago.
My idea is that, in order to provide to the user different options to choose it would be very interesting to include some type of IBOutlet with a drop down menu on it.
This is how it should be seen.
How is the best way to do this?
Any suggestion would be very appreciated.
Presuming that the down arrow is a button to trigger the drop-down that you've illustrated, the first suggestion that comes to mind is to create an IBAction for that button that presents a table view as a child view controller. This table view will list out the "different options".
You could always use a UIAlertController. Apple suggests that developers follow the same consistent design throughout the entire OS. As a plus, UIAlertController is pretty easy to use. (Beware though, UIAlertView is deprecated. Don't use it by mistake.)
You could also (if you have a lot of choices) use a UIPickerView.
This question already has answers here:
iPhone popup menu like iPad popover?
(8 answers)
Closed 9 years ago.
I'm developing an app and I want to have a popup list view similar to the one in Safari on iOS:
This kind of popup with the little speech bubble style arrow and a thin border appears on a number of apps. Is it a standard component? If so how can I create one?
It's called UIPopoverController.
You create it with it's designated initializer
– initWithContentViewController:
I strongly recommend you to read its docs:
If you are developing for the iPad, use a UIPopoverController. However, popovers are not supported on the iPhone natively. Instead of using the popover on the iphone, I would created a new scene that contains what you wanted int your popover.
However, if you are committed to using a popover on the iPhone, there are a variety of third party APIs that you can take a look at. WEPopover is one of the more popular ones.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
SplitView like Facebook app on iPhone
I need a control that will split a screen into 2 different views when click.
It is kind of like this [1]: http://i51.tinypic.com/2112zwh.png
I had used inferis/view deck but it screw out my navigation controller.
Basically it can't perform any segue
I am using StoryBoard with navigation controller and also tab controller.
Anyone has any idea how to have this kind of menu but works with storyboard and navigation controller, tab controller?
I made a video (3 parts) on youtube on how to make a sliding menu like the on you are looking for. I show you how to set up the project and get everything linked up.
http://www.youtube.com/watch?v=tJJMyzdB9uI
You will have to create UINavigationControllers instead of plain UIView controllers if you want to use that tutorial, but its basically just selecting one or the other.
The cool thing about ECSlidingViewController (Its the one I use) is that just about everything you want to configure (how far a view slides, the animations, left or right side) is done with a single line of code (sometimes 2 or 3 lines)
Try it out and see if it works for you?
I used the JTRevealSidebar Project to build mine. I used storyboards, and segues in my project and got everything working without any troubles. Take a look at the demos, and it should be pretty easy to implement. If you have any specific issues when you do get it implemented feel free to post questions about your issues.