I am using JASidePanels in a universal iOS app. I make the sidebar menu visible whenever the user is in landscape mode on an iPad, but it seems that when the menu is open, the centerPanel's UI components become disabled. Tapping anywhere simply closes the menu, and then centerPanel interactivity resumes. But I want to keep the menu open and retain interactivity everywhere (similar to how Wunderlist does it).
Is this possible with JASidePanels? I have reviewed the class methods and don't see a related option, but I want to confirm before I rip it out and try a different menu system.
Thanks!
This method is the only place userInteractionEnabled is changed:
https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.m#L244
Use KVO to watch this property:
https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.h#L139
and whenever it changes, make sure all of these views have userInteractionEnabled = YES
https://github.com/gotosleep/JASidePanels/blob/master/JASidePanels/Source/JASidePanelController.h#L139
Related
I would like when entering my app to automatically switch to my custom keyboard like the Facemoji app.
Is this possible to force user to open only custom keyboard without going into setting option. I want whenever user opens the app. only custom keyboard should open, not other. In my app there is preview function, show as extended keyboard otherwise it will show default keyboard i will fail.
thanks!
UITextField have property inputView
You can set any view you want inside yours application.
So you can use use the same view used for your's custom keyboard
I've been working on a couple of iOS action extensions for a while, but I have noticed an odd behavior I was wondering if anyone else saw. In short, after you install and turn the extension on from the share button menu and leave the menu, it disappears from the menu.
More specifically, when you first install the extension, you expect you have to press the share button, scroll the bottom bar menu (for the action extensions) all the way to the right, press the "More" button, toggle your extension on and then press done. At that point the icon for the extension will appear and you can use it. However, the next time you want to use the action extension, the icon will not appear and you have to repeat the process, even though when you look in the "More" menu, the toggle switches for your app are already flipped on.
I wish I could add images to further elaborate here, but I can't because of StackOverflow's rules.
I have not been able to find any information on this any where, so I was hoping someone here has noticed this behavior or not. Any help on resolving this would be greatly appreciated.
This has been a bug in iOS 8.3, and has been acknowledged by Apple.
Fixed in iOS 9.
Issue on OpenRadar
How to solve:
The new share extension is NOT visible in the default list, and is CHECKED in the “More…” list. Changing any of the switches and tapping Done will show the new share extension in the default list.
I have a Xamarin.Forms application with a login screen. I have added code to move the controls out of the way, when one of the Entry fields gets focus. I move the views back down in the Unfocus event handlers. In the simulator I can prevent the software keyboard from popping up. Unfortunately my event handlers still move the view up and down even without the keyboard.
Is there a way to detect the keyboard's appearance in Xamarin.Forms, while in the event handlers on the ContentPage?
I don't think there is support for this out of the box and thus I'd go with DependencyService and implement it by myself.
You could use ContentPage.LayoutChanged event.
It works because the keyboard doesn't display over the content page as one would guess, but under it, in the same layer, so it push the page up.
I am launching a custom popup when the user clicks a button on iOS. How do I make sure that the focus stays within the custom popup (for accessibility reasons) when using voiceover on the iPhone? Currently the focus lands on the elements in the parent container as I swipe right.
If you're targetting for iOS >= 5.0 then there is a property called accessibilityViewIsModal. Using this definitely solve your problem.
If you're targetting for iOS < 5.0 then there is no a straight way for this. You need to customize your view controller's view and reorder the "_accessibleElements" as shown here. See the section Make the Contents of Custom Container Views Accessible.
In my iOS app's Settings screen, there is one setting which is quite fundamental. I wish to inform users about this with a UIAlertView.
Preferably I would display this when the back button is pressed (and thus they are finished editing their settings). However, is this possible, or even allowed by Apple? If so, how?
My second choice would be to show the UIAlertView as soon as the setting is changed, but if this is possible its not really a preference. And if it is possible, how do I do it?
Edit - 2nd August 2012 : My app has its own Settings screen in addition to the built in Settings screen, so my question applies to both screens. Also, note that the setting is a UISwitch.
Also, I preferably would like a cancel button on the UIAlertView that allows the user to NOT leave the settings screen once they have read the warning. Is this possible?
You cannot do it for the iOS Settings app, but in your own app's settings view controller you could show an alert on viewWillDisappear:
UPDATE: From the comments, you want to override the back button behaviour. I would suggest that you hide the back bar button item and create your own button. Then if the user accepts in the prompt, you call [self popViewControllerAnimated:YES];
As of yet I do not believe my aim is possible on the traditional settings screen.
On my own settings screen, a UIAlertView is possible when the back button is pressed. The solution can be found here. However, it breaks the parts of my app which automatically pop screens without the user pressing the back button.
I therefore simply have made a UIAlertView pop up when the setting itself is changed. I haven't included a 'cancel' button on the pop up.
Further alternative answers here on Stack Overflow, however, will be welcome!