Apple documentation doesn't list the actual values of the various constants.
These values are needed when calling native methods with NativeObject.
You can use OBJC code to log these values:
These values are needed when calling native methods with NativeObject.
You can use OBJC code to log these values:
B4X:
#if OBJC
-(void) test {
NSLog(@"%@", NSForegroundColorAttributeName);
NSLog(@"%@", NSUnderlineColorAttributeName);
NSLog(@"%@", NSUnderlineStyleAttributeName);
NSLog(@"%@", @(NSTextAlignmentRight)); //non-string values should be wrapped with @(...)
}
#End If
B4X:
Me.As(NativeObject).RunMethod("test", Null)