Ken*_*nzo 20
根据pheekicks的建议,我找到了一个提示:
UILabel *label = [[UILabel alloc] init];
self.navigationItem.titleView = label;
Run Code Online (Sandbox Code Playgroud)
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor clearColor], UITextAttributeTextColor, [UIColor clearColor], UITextAttributeTextShadowColor, nil]];
Run Code Online (Sandbox Code Playgroud)