Is there a way to add a custom image to the UIMenuItem in iOS? It have to look like in Android (Image + Text below). May be there are completed custom controllers? Thx in advance.
Yes you can but in a special way — using method swizzling but no any private API. Checkout my project https://github.com/cxa/UIMenuItem-CXAImageSupport for details.
Related
I want to implement Arc Menu like Pinterest.
on iOS:
https://iosexample.com/a-beautiful-and-minimalist-arc-menu-like-the-pinterest-one-written-in-swift/
https://github.com/GnosisHub/GHContextMenu
Is there any similar package/solution on Flutter?
try these,
flutter_arc_speed_dial
awesome_speed_dial
I was also in need of this feature, so I developed a dart package for this:
It's called pie_menu and available here on pub.dev.
Please share your thoughts if you give it a try. 🥧
I saw that it's possible — iBooks application does it.
Is it any way to do it?
I wrote a category to support image for UIMenuItem. It's based on method swizzling, but should be safe in most cases.
https://github.com/cxa/UIMenuItem-CXAImageSupport
There is nothing in the current official API do that. UIMenuItem can only be initialised with -initWithTitle:action:
I suspect that Apple either using a private API or have implemented a custom control. Probably the former.
Asked previously here
Check Emoji & Symbols, perhaps it will fit to your purpose.
Go to your Xcode Menu -> Edit -> Emoji & Symbols.
Ex.:
let menuItemYes = UIMenuItem(title: "✅", action: "doSomething")
Good luck!
I have multi-selection dialog(drop-down) in Android where user selects all options applicable to him in registration page.What can be used in Iphone for the same purpose ?
And selecting a few options will unhide few textfields which is mandatory to fill.
Let me know what can be my approach.Please share any open source code links.
Thanks in advance.
No, there is no such thing within the iOS SDK and that is for a good reason - those elements are just not pretty, funky and usable well enough when acting on a touch display.
Consider using UIPickerView or UISegmentedControl instead. Maybe also have a look at Action Sheet.
I saw that it's possible — iBooks application does it.
Is it any way to do it?
I wrote a category to support image for UIMenuItem. It's based on method swizzling, but should be safe in most cases.
https://github.com/cxa/UIMenuItem-CXAImageSupport
There is nothing in the current official API do that. UIMenuItem can only be initialised with -initWithTitle:action:
I suspect that Apple either using a private API or have implemented a custom control. Probably the former.
Asked previously here
Check Emoji & Symbols, perhaps it will fit to your purpose.
Go to your Xcode Menu -> Edit -> Emoji & Symbols.
Ex.:
let menuItemYes = UIMenuItem(title: "✅", action: "doSomething")
Good luck!
I'm trying to make a popup like in "Camera+" or "Tweetbot" (like this one : Tweetbot or this one Camera+). How can I do this ?
That component is generally called a Popover or a Callout. Apple provides you with an Implementation on the iPad (UIPopover) but not on the iPhone.
There are a few Libraries which attempts to solve this and creates similar popovers like the ones you've shown. With a bit of customisation you can get it to look like this ones you've linked. Below is a list of the ones i've found so far:
WEPopover
CMPopTipView
PopupView
There's similar question here: iPhone popup menu like iPad popover?.
There is a solution. It's called WEPopover and you can download it from github.
For ipad use the popover control:
http://www.matthewcasey.co.uk/2010/04/07/tutorial-introduction-to-pop-over-control-on-ipad-part-1/
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html