Skip to content

Image Support #2

@jonasman

Description

@jonasman

Hi,

In file BCTextView.m

you can replace your method by this one:

  • (UIImage *)imageForURL:(NSString *)URL {
    return [UIImage imageNamed:URL];
    }

So the images would work, if they are in the bundle!

Another improvement:
Add the following method to the same .m file

-(void) setHTML:(NSString *)html{
self.textFrame = [[[BCTextFrame alloc] initWithHTML:html] autorelease];
self.textFrame.delegate = (id )self;
}
So you can subclass this Class and add custom HTML to it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions