Does anybody know a possibility to center simple pictures within a UIWebview without using hmtl/css?
Thanks in Advance.
Does anybody know a possibility to center simple pictures within a UIWebview without using
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not possible — a
UIWebViewdisplays web content, nothing else. Use aUIImageViewif you need to display images in your application.Edit: Noah’s comment had me look further into this, and it is possible to load local files using the
loadData:MIMEType:textEncodingName:baseURL:, but I’m not sure what the centering situation is there.loadHTMLString:baseURL:is the easiest way to get this functionality, but of course you were asking how to do it without html/css.