i am making status app where all status are being fetched from my Wordpress Website , all working fine but i found some problem when i fetch html content and showing it in cells using UILabel. when i fetch default excerpt all works fine but when i add tags like etc in excerpt then scrollview is not smooth and it stopped sometime , although i don't get any error in Xcode.. this is the code how i convert html to text..
cell.titleLabel.text = String(htmlEncodedString:newsData[indexPath.row].excerpt.rendered)
please help.. thanks
Related
I use WKWebView.
recently i update my iPhone to ios13
then something wrong...
touch input(type=file) tag.
appear select photo in library or take a picture modal.
one of these action i act. return the black screen.
what should i do?
Help me. please~
Thank you for reading.
detail pic of 1
detail pic of 2
detail pic of 3
i solve this problem
i caught default imagePicker in wkwebview (override present func)
and modalStyle set .custom
then it works fine.
I want to load image in card view with other data like title and desc.
I am uaing php to get result as json response which is working and also i am able to set data to textview and pass from one activity to other !
Only problem i am facing is in setting image in image view.
i can add image manually by making listview obj and storing link in ArrayList obj
Like obj.add(R.drawable.feature1.jpg)
How to do it dynamically from the json response i am getting ?
Sorry if i sound confusing as i am new to android and just want to make a image gallery where first i will display list of albums and after clicking one of albums all images from that albums are loaded and displayed.
{"products":[{"mid":"1","title":"Demo Video 1","link":"https:\/\/m.youtube.com\/watch?v=PCwjNfSM-U","mediaCreatedOn":"2015-08-30 18:59:18","mediaUpdatedOn":"0000-00-00 00:00:00"},{"mid":"2","title":"Demo Video 1","link":"https:\/\/www.youtube.com\/","mediaCreatedOn":"2015-08-30 18:59:18","mediaUpdatedOn":"0000-00-00 00:00:00"}],"success":1}
The above is the output from server side where only the youtube link is replaced by server img location.
Thank you for reading, have a nice day ahead :)
1:You can store image to database Example:mysite.com/img/34324234342.png (phpMysql)
2:And you can get image from php rest service (Only image link)
3:For load image from link , you can use picasso library (android)
4:If you want image with text, you can use custom listview
Example xml for restful service.
<myimage>
<title>abc</title>
<ipath>mysite.com/img/34324234342.png</ipath>
</myimage>
I created this custom annotationView that can contain a logo and a label in the screenshot the logo is stored locally,
screenshot : http://hpics.li/3c45def
now I want to display the logo stored on the server, I tried to integrate the tableview imagedownloader but I failed, someone has an idea of where to start
Thank you
You can use NSURLRequest to download the raw data for the image from the server. Once downloaded you can set the image in your tableview.
You start by having a look at this post.
I'm trying to get a UIImage of a UIWebView, I can do this fine using renderInContext:. However before I generate the image I would like to update the UIWebView with some HTML code, the trick is the UIWebView is hidden. Right now, I can not get the updated version of the web view to render in the UIImage, just the old one.
Are you waiting until the UIWebView re-renders before querying it again? Loading HTML into a UIWebView does not immediately update the view. You need to wait for webViewDidFinishLoad:. This is true even if the HTML is a simple string with no external references.
I am working a rss reader app for iphone . What are my options for displaying entry summary in rss feed ( which could be html) in a tableviewcell without compromising scroll performance .
I dont control the feed so html in summary section is out of my control .
I am thinking of uiwebview would be my last option ( so rss feeds have images and stuff in there, unfortunately ) . I was thinking if there was a way to extract summary text from html.
You can use a WebKit view, UIWebView to present the feed and add it a subview to the UITableViewCell.
You need to worry about the cell height and making the UIWebView non-scrollable.
I recently saw a presentation on Three20 (http://groups.google.com/group/three20/) that included a few things that might help you.
This is the specific thing I'm referring to: http://mattvague.com/three20-custom-cells-iphone-tutorial
If anyone is interested I just made a new up-to-date version of my custom cells tutorial, check it out at http://mattvague.com/three20-tttableitem-tutorial
Cheers!