Creating a popup list view on the iPad [duplicate] - ios

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.

Related

is it possible to hide the backlink button on ios? [duplicate]

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.

Dynamically change iOS LaunchScreen [duplicate]

This question already has an answer here:
iOS: Update launch screen dynamically
(1 answer)
Closed 2 years ago.
I'm developing an app using SwiftUI and I have had a default launch screen on my app, using the default LaunchScreen.storyboard.
However, I want to display a different launchScreen based on information stored on UserDefaults.
Is this possible? I assume some workaround is needed, but I have not figured it out yet.
My understanding is that LaunchScreen has an extremely limited capability, and rather strict guidelines, including that it shouldn't contain dynamic content. Notice this quote from this page:
A launch screen appears instantly when your app starts up and is
quickly replaced with the app's first screen...It’s solely intended to
enhance the perception of your app as quick to launch and immediately
ready for use.
You probably want to have a second "landing" screen where you load dynamic content This can look almost identical to the Launch Screen, which will probably only appear for a second at most, giving the illusion of a dynamic launch screen.

How to make a drop down menu in Swift [duplicate]

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.

Sliding ViewController animation like the Facebook Iphone app [duplicate]

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.

IOS facebook app slide option menu [duplicate]

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.

Resources