iOS Question backbutton font

Code: Copy
#if OBJC
- (void) ChangeFont {
NSShadow *shadow = [[NSShadow alloc] init];
shadow.shadowOffset = CGSizeMake(0.0, 1.0);
shadow.shadowColor = [UIColor whiteColor];

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil]
 setTitleTextAttributes:
 @{NSForegroundColorAttributeName:[UIColor blackColor],
  NSShadowAttributeName:shadow,
  NSFontAttributeName:[UIFont boldSystemFontOfSize:12.0]
  }
 forState:UIControlStateNormal];
}
#End If

Call it when the program starts:
Code: Copy
Private Sub Application_Start (Nav As NavigationController)
   Dim no As NativeObject = Me
   no.RunMethod("ChangeFont", Null)
 
Upvote 0
Code: Copy
#if OBJC
- (void) ChangeFont {
NSShadow *shadow = [[NSShadow alloc] init];
shadow.shadowOffset = CGSizeMake(0.0, 1.0);
shadow.shadowColor = [UIColor whiteColor];

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil]
setTitleTextAttributes:
@{NSForegroundColorAttributeName:[UIColor blackColor],
  NSShadowAttributeName:shadow,
  NSFontAttributeName:[UIFont boldSystemFontOfSize:12.0]
  }
forState:UIControlStateNormal];
}
#End If

Call it when the program starts:
Code: Copy
Private Sub Application_Start (Nav As NavigationController)
   Dim no As NativeObject = Me
   no.RunMethod("ChangeFont", Null)
thanks Erel!
You are wonderful,

But How can I change it to my custom font?
 
Upvote 0
Back
Top