I need to change title UIlabel text in ZDCLoadingErrorView when no agent is available, but unable to do that.
Using ZDCChat.instance().offlineMessageHandler.noAgentsMessage , I am only able to change message UIlabel in ZDCLoadingErrorView.
ZDCLoadingErrorView.init().title return nil and I havn't found any way to add notification for ZDCLoadingErrorView when it first appears.
Thanks in advance
You can change it through the Localizable.strings file located at the ZDCChatStrings.bundle. The key is "ios.ZDCChat.noAgentsTitle" as stated on https://developer.zendesk.com/embeddables/docs/ios-chat-sdk/customization
Related
Anyone know how you get the current text of a JSQMessagesViewController? When the view disappears I wan to cache the text the user has typed in so that when they return I can repopulate.
Found it.
self.inputToolbar.contentView.textView.text!
I'm trying to find a way how to rename the Return Key in a textView. I am sure it is somehow possible despite the fact that some claim it cannot be done.
I already have the return key process another action rather then adding a line. And I know there is a list of other names that can be used to change the title of the return key, but I would like to put in my own text. Does anyone know how this can be done?
As the comments have already stated, you can't change the text of the return key on the keyboard. If you'd like to add a "run" button in a way that's relatively standard I would recommending setting the inputAccessoryViewproperty to be a UIToolBar with a "run" button in it. Something like this, but with "run" instead of "done":
I have a UITextView whose content I have set in my .xib.
I am trying to get it to recognize a link using these settings:
Unfortunately the link does not show up when I run in the simulator (it only shows as plain text):
How can I get the UITextView to recognize the link and display it properly?
Set your Textview behavior to Selectable ,
And make sure you have enabled User Interaction .
HI I develop an application in IOS and I meet a problem that I want to change the default text which is "search" in search bar to "Key in video title to search". How to do it ? Please help me Thank you.
The UISearchBar and the UITextField have this property of a placeholder which is the default text in the fields.
1.Change it from the Interface Builder.
2.Change it through code
self.searchBarObject.placeholder = #"Key In Video Title To Search";
Read what Apple has written about the UISearchField.
You can use the plain old placeholder property:
mySearchBar.placeholder = #"Foo!";
Relevant documentation.
It can also be changed within Interface Builder:
You can set the placeholder property
sBar.placeholder = #"Key in video title to search";
I want to insert a URL hyperlink into a UITextField that has different display text.
This is super easy in html:
Go To Google
How can I do this in iOS?
You can change the text style inside your UITextField via an attributed string sent to the text field's "attributedText" property.
However, what I suspect you really want to do is have a link that's clickable. I would recommend using a UIButton with a custom type (i.e. no border) and you can set the color and the underline style.
But like Evan said, if you have multiple lines of text, it may be smarter to use a UITextField where you set "editable" to NO and turn on the LINK traits (both of these you can do from the object inspector in Xcode).
Alright, so here's what I did to get what I wanted. I used UIWebView, and simply linked it to an html page in the project that has the text, and hyperlink at the bottom with different text displayed.
Answer is here :
If you want it as clickable Hyperlink,
NSString *string = #"Go To Google";
You need to add "BACKWARD SLASH" before ". That's it.