Giter Site home page Giter Site logo

wzbbiao / uitextview-wzb Goto Github PK

View Code? Open in Web Editor NEW
275.0 9.0 42.0 8.04 MB

一个强大的UITextView分类,三大功能,让系统TextView自带placeholder属性、自动高度、支持输入图片

License: MIT License

Objective-C 98.49% Ruby 1.51%
textview-placeholder uitextview-wzb custom-textfield textfield wzbtextfield wzb-textfield-placeholder

uitextview-wzb's Issues

初始化时的bug

在创建的时候需要设置placeholder和默认text时,存在placeholder的文字和text都显示的问题。

有BUG 老哥

// if (self.placeholderView) {
// NSArray *propertys = @[@"frame", @"bounds", @"font", @"text", @"textAlignment", @"textContainerInset"];
// for (NSString *property in propertys) {
// [self removeObserver:self forKeyPath:property];
// }
// }

里面这段代码 Time一直无限叠加 直至卡死 释放不掉

pod install 错误哦

[!] CocoaPods could not find compatible versions for pod "UITextView-WZB":
In Podfile:
UITextView-WZB (~> 1.1.1)

Specs satisfying the UITextView-WZB (~> 1.1.1) dependency were found, but they required a higher minimum deployment target.

用了 placehoder的功能 pop 时报错

2017-07-18 09:58:49.211 JiDing[1213:105514] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7fd88b905200 of class UITextView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x600000420f00> (
<NSKeyValueObservance 0x600000253e90: Observer: 0x7fd88b905200, Key path: frame, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x600000253ec0>
<NSKeyValueObservance 0x600000254040: Observer: 0x7fd88b905200, Key path: bounds, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x600000254070>
<NSKeyValueObservance 0x600000254130: Observer: 0x7fd88b905200, Key path: font, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x600000254160>
<NSKeyValueObservance 0x600000253f80: Observer: 0x7fd88b905200, Key path: text, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x600000254220>
<NSKeyValueObservance 0x600000254190: Observer: 0x7fd88b905200, Key path: textAlignment, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x6000002542e0>
<NSKeyValueObservance 0x600000254250: Observer: 0x7fd88b905200, Key path: textContainerInset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x600000254400>
)'

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.