iOS Question Toast message in webview1

Giusy

Active Member
Licensed User
Hi,
I load an html in webview1 and when the user press with a "long_click" I want visualize a toast message but appear "copy..share etc"
How to avoid the inconvenience?
 

Attachments

  • PROVA.zip
    2.6 KB · Views: 292
  • prova.jpg
    prova.jpg
    28.2 KB · Views: 304

Giusy

Active Member
Licensed User
@Erel I am new in b4I and I looked for help in the community. I do not know other ways to load an HTML if not with webview.
I don't understand "You can change the items to links ".
My html are in dir asssets
can you give me a simple example?
Thanks
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
What Erel probably meant is that you should not use a HTML layout to show in a webview for your design.
Create your layout with the designer, then use the builtin listview or scrollview to show your list which users then tap to select a value...
 
Upvote 0

Giusy

Active Member
Licensed User
Hi, @moster67
"listview or scrollview ...."
I have not found any examples of how to load the html in listview or scrollview.
can you help me with a little example? I would really appreciate it
Thanks
 
Upvote 0

Giusy

Active Member
Licensed User
You say don't use HTML.
what should I use instead of the html, with what I have to replace it.
I do not understand :(
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
What exactly is the purpose of your WebView?
Is it a kind of menu?
Why do you use a html file and not just a text file?
Whithout knowing what exactly the purpose is, it's diffcult do give a concrete advice.
Sorry for these questions, but before answering a question, I like to know the real problem.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
hi @klaus, I have posted prova.zip in this thread
I had a look at it and I don't understand the purposethat's the reason why I asked the questions.
And I still don't understand.
Do you just want to display some text, is it a kind of menu, is it used to select spmething ???
 
Upvote 0

Giusy

Active Member
Licensed User
I have a first page for example with 10 choices.
each choice must load an html
when the user do a "long_click" I want to visualize a toast message
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
So, I come back to Erel's question
Why are you using a WebView for your layout? It only makes things more complicated and less customizable.
The attached test project does what you expect.
The project uses a ScrollView, and the html file was saved as a text file with UTF-8 encoding, dirctly with Word.
 

Attachments

  • PROVANew.zip
    60.6 KB · Views: 295
Upvote 0
Top