GithubHelp home page GithubHelp logo

ruddfawcett / rfmarkdowntextview Goto Github PK

View Code? Open in Web Editor NEW
383.0 10.0 33.0 94 KB

[Deprecated, iOS] Use Notepad instead: https://github.com/ruddfawcett/Notepad.

Home Page: https://github.com/ruddfawcett/Notepad

rfmarkdowntextview's Introduction

[Deprecated]

After three years, I am retiring RFMarkdownTextView (an Objective-C markdown editor). I wasn't able to give it the attention it deserved.

As a replacement, I just released Notepad, a new Swift 3.0 Markdown editor. Notepad is faster, fully themeable, and more extensible as a library. Be sure to check it out.

If you are interested in the old editor, all of the history is preserved in this tree.

rfmarkdowntextview's People

Contributors

appleton avatar ayberkt avatar bdbergeron avatar ruddfawcett 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

rfmarkdowntextview's Issues

Cocoapods install - build fails

Added to Podfile:

platform :ios, '7.0'
pod "RFMarkdownTextView", "~> 1.1.1"

Clean and build:

/Pods/RFMarkdownTextView/RFMarkdownTextView/Buttons/RFAsteriskToolbarButton.m:18:23: No known class method for selector 'textView'

/Pods/RFMarkdownTextView/RFMarkdownTextView/Buttons/RFAtToolbarButton.m:18:23: No known class method for selector 'textView'

/Pods/RFMarkdownTextView/RFMarkdownTextView/Buttons/RFCodeToolbarButton.m:18:23: No known class method for selector 'textView'

A silly switch statement AND calculations (2 for the price of 1!)

Looking over RFMarkdownTextView.m I realized I had a stupid, stupid switch statement, as well as unnecessarily calling scrollViewButtons twice, to calculate originX.

I'll be pushing an updated version soon, but in the meantime, just replace the whole switch statement with this:

NSArray *buttonTitles = [[NSArray alloc] initWithObjects:@"#", @"*", @"_", @"`", @"@", @"Link", @"Codeblock", @"Image", @"Task", @"Quote", nil];

NSUInteger index = 0;
NSUInteger originX = 0;

for (NSString *buttonTitle in buttonTitles) {
    UIButton *buttonForTitle = [self scrollViewButtons:buttonTitle withXOrigin:originX andTag:index];
    [_scrollView addSubview:buttonForTitle];

    originX = originX + buttonForTitle.bounds.size.width + 8;
    index++;
}

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.