最近搜索


没有最近搜索

Can I override view controller title when requesting UI?



已于 2023年5月02日 发布

I'm on version 5.3 of the iOS SDK. I'd like to set my own title when pushing Zendesk UI onto my navigation controller, but when I try to update the title of the view controller returned by RequestUi, it is immediately overridden by code within the ZendeskSDK. Is this controllable by developers?

Examples:

let vc = RequestUi.buildRequestList(with:)

vc.title = "My Custom Title"

let vc = RequestUi.buildRequestUi(with:)

navigationController.pushViewController(vc, animated: true)

 

vc.title = "My Custom Title"

navigationController.pushViewController(vc, animated: true)

 

Setting the title in either of these manners doesn't persist it on the view controller that is pushed


0

4

4 条评论

Bummer. Thanks, you can close this ticket.

0


No problem.  There isn't a way to set them dynamically.  At this time, the SDK does not provide options for this degree of customization.
 
 

0


Thank you Christopher. Is there a method to dynamically set these strings in code based on certain conditions? 

For example, depending on how the user enters ticket creation in the app, I might want different titles. 

0


Hi Brandon,
 
You can override existing strings by setting the custom value for the string in your project's Localizable.strings file.
 

0


登录 to leave a comment.

找不到所需的内容?

新建帖子