iOS Question Segmented control

fishwolf

Well-Known Member
Licensed User
Longtime User
I would use the Segmented control.

can i change the font size or the selected color?

Thanks
 

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi, use
B4X:
 Dim NaObj As NativeObject = Me
NaObj.RunMethod("SetFont::", Array (Font.CreateNew(30),SegmentedControl1))

#If OBJC
-(void)SetFont:(UIFont *)Font :(UISegmentedControl *)SegmentedControl{
    NSDictionary *attributes = [NSDictionary dictionaryWithObject:Font forKey:NSFontAttributeName];
    [SegmentedControl setTitleTextAttributes:attributes forState:UIControlStateNormal];
}                             
#End If
 
Upvote 0
Top