Giter Site home page Giter Site logo

mureev / cmhtmlview Goto Github PK

View Code? Open in Web Editor NEW
203.0 17.0 39.0 2.12 MB

CMHTMLView is an UIWebView wrapper to provide easy access to show rich text content (HTML) with native look and feel.

License: MIT License

Ruby 0.02% Objective-C 11.15% C 0.06% Shell 0.09% HTML 88.69%

cmhtmlview's Introduction

CMHTMLView

Build Status CocoaPods CocoaPods License MIT

##Deep refactoring completed. Expected API freeze - March 2014. You can use previous version with old API - 0.0.1.

Text OfflineImages

Features

  • 100% native look and feel
  • Offline images support (Any format including animated gif)
  • Video support (object YouTube, iframe YouTube, iframe Vimeo)
  • All images support Retina display
  • Extra Low memory usage
  • Stable (never crashed)

License

CMHTMLView is available under the MIT license. See the LICENSE file for more info.

cmhtmlview's People

Contributors

mureev avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmhtmlview's Issues

CMHTMLView can't identify align

In use process discovery, CMHTMLView can't identify align="right" attribute.

For example, in CMHTMLView demo, change<img src="http://farm6.staticflickr.com/5213/5540314126_b6773ffa09_b.jpg" width="950" height="713" alt="The Apple of My Eye"> to <img src="http://farm6.staticflickr.com/5213/5540314126_b6773ffa09_b.jpg" align="right" width="950" height="713" alt="The Apple of My Eye">, add align="right", but picture still can't the right display in CMHTMLView.

UIWebview scroll size

Congratulations for the project!
Very easy to use.


I'm using the storyboard and autolayout.

After loading the html page (loadHtmlBody:), I use the htmlViewDidFinishLoad:withError: to set new value for a CMHTMLView height constraint.

When the HTML does't have images, the size of the scroll is correct.
But when images are displayed, the scroll is displayed wrong.

- (void)htmlViewDidFinishLoad:(CMHTMLView *)htmlView withError:(NSError *)error
{
    if (error) {
        htmlView.alpha = 0;
    } else {
        self.constraint.constant = htmlView.webView.scrollView.contentSize.height;

        [UIView animateWithDuration:0.2 animations:^{
            htmlView.alpha = 1;
        }];
    }
}

Is there any way to solve this problem?

Wich is the intended of replacing images html?

I need to add an id to my images so I can modify images styles, but I am getting my images html replaced in the prepareImagesInHtml method and it is changing the id.

What's the use of this?

Is it all right?

Thanks for your CMHTMLView . It's very good.
I feel uncertain if it is all right when i load html string.
The effect screenshot is bellow
5dd3edd1-18f6-4400-9c59-d78309686742

CMHTMLView may be lead to crash

Application received signal SIGSEGV
(null)
(
0 CoreFoundation 0x34e9e2bb + 186
1 libobjc.A.dylib 0x331ae97f objc_exception_throw + 30
2 CoreFoundation 0x34e9e1c5 + 0
3 iTennisforiPhone 0x000c83f5 SignalHandler + 84
4 libsystem_c.dylib 0x38c58e8b _sigtramp + 34
5 CoreFoundation 0x34e7c63b + 2138
6 myApp 0x00089c0f -[CMHTMLView prepareImagesInHtml:] + 890
7 myApp 0x00089037 __39-[CMHTMLView loadHtmlBody:competition:]_block_invoke_0 + 50
8 libdispatch.dylib 0x33b8f11f + 10
9 libdispatch.dylib 0x33b93961 + 252
10 libdispatch.dylib 0x33b93ac1 + 84
11 libsystem_c.dylib 0x38c26a11 + 360
12 libsystem_c.dylib 0x38c268a4 start_wqthread + 8
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.