Here is a tutorial in objC, but i dont know objC so i dont get it work.
i tried to adapt the code from this thread to my code, but unfortunately without success.
Thanks
How to adjust a UIScrollView to fit the keyboard - free Swift 5.4 example code and tips
Learn Swift coding for iOS with these free tutorials
www.hackingwithswift.com
iEventKit Question - Getting notified of Event Changes
Using the iEventKit library, is it possible to: https://developer.apple.com/documentation/eventkit/updating_with_notifications?language=objc a) Register for the EKEventStoreChangedNotification b) Use the refreshSourcesIfNecessary to limit the events to only those that have changed Thanks
www.b4x.com
B4X:
Sub AddListener
Dim no As NativeObject = store
Dim nstore As NativeObject = no.GetField("store")
no = Me
no.RunMethod("addStoreListener:", Array(nstore))
End Sub
Sub Store_Changed(Notification As Object)
Log(Notification)
End Sub
#if OBJC
- (void)addStoreListener:(EKEventStore*) store {
[[NSNotificationCenter defaultCenter] notificationCenter.addObserver(self, selector: #selector(adjustForKeyboard), name: UIResponder.keyboardWillChangeFrameNotification, object: nil)];
NSLog(@"Store listener added");
}
- (void)eventStoreChangedNotification:(NSNotification *)notification {
NSLog(@"Event store changed");
[self.bi raiseEvent:nil event:@"store_changed:" params:@[notification]];
}
#End If