Recent searches


No recent searches

Can I override view controller title when requesting UI?



Posted May 02, 2023

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 comments

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

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

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


image avatar

Christopher Kennedy

Zendesk Developer Advocacy

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


Bummer. Thanks, you can close this ticket.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post