I have this macOS app which has all the contacts listed in there.
Users can select what all suggested contacts can be updated in the app. When I deselect All checkbox in the top and just select a single/a couple of contacts and scroll down, the checkbox states are lost and they get deselected automatically. Do I need to handle any scroll event in NSTableView for swift macOS apps?
Related
I am trying to connect a Button and Collectionview in my tvos application (Xamarin - Visual Studio Mac). I need to show the collectionview when tap the button.
I am following this blog for the implementation of collectionview in my project. The 6th step on this blog tells how to connect the Button and collectionview , Control-drag from the Button to the Collection View Controller and select Push from the popup:
Screenshot
I tried a lot by dragging the Button to Collectionview, but there is no popup and they are not getting connected. I am a beginner on tv os application development. So anybody please explain this mechanism? If provide a gif file, it will be easy. :)
Focus on the button and click the Control on the keyboard at same time .
Move the mouse from the button to the CollectionViewControl .
Now the popup will display.
I have a SearchBar component and a ListView component. When I tap the search bar, the keyboard comes up but it stays up even if the user decides to scroll ListView under it. I can't seem to find either
1) any event on the ListView that I can trigger the search bar to close on when it's scrolling
--or--
2) any event on the search bar that I can check to see if it's not focused , then close it.
Either of those would be sufficient but I can't seem to find any in the documentation.
Both components are independent of each other, you must call dismissSoftInput() on the search bar upon scroll.
Unfortunately the scroll event is not supported out of the box while using ListView. There is an open feature request on Github, which also discusses how you may implement this event with an override & bit of native code in your project. You may also consider using RadListView, supports scroll events out of the box.
I am newest in Xamarin and have question for developers with more experiences.
I want to hide custom picker when user clicks anywhere any view in app. This working with view where is custom picker opened, but when I click on toolbar he remains opened. This problem is existing only on iOS, Android work as expected.
Could i make whole toolbar to be clickable and how?
Thanks in advance
In the Picker Toolbar you can set UIBarButtonItem to add Done button. Then you can add a Click Event for the Done button and write following code in it.
YourPicker.RemoveFromSuperview();
YourPickerView.RemoveFromSuperview();
textField.ResignFirstResponder();
I need to scroll to top the main Interface Controller of an Apple Watch app programmatically after each launch specially if users has left the app after scrolling it down.
EDIT:
This is now possible in watchOS 4. Just use the scrollToObject:atScrollPosition:animated: method.
Unfortunately, this isn't currently possible. WatchKit only provides a method to scroll to the top of a WKInterfaceTable, not an entire interface controller.
The only workaround I've found is to hide every element in the interface controller. This doesn't just hide the element, it completely removes it from the controller. Then when you unhide everything, you'll be back at the top of your content.
I have a project that I created before auto layout came out. My projects has two storyboards - a main one (quite complex, 10+ screens) and a secondary one (just a few screens). I'm trying to enable auto layout for my project, but am unable to do so for the main storyboard.
I'm accessing the file inspector, then checking the "Use Autolayout" checkbox in the Interface Builder Document panel. While this worked fine for the secondary storyboard, when I click the checkbox for the main one I'm getting the beachball for a few seconds (and the previously empty checkbox turns to a "-"), then a lock HUD is displayed and the checkbox returned to the unchecked state. I couldn't find any documentation about this - what does the lock refer to? I do have quite a few locked views in my screens, am I supposed to unlock them before converting the storyboard?
For me helped "Reset Locking Controls" below "Use Autolayout" checkbox. Than conversion worked !