From 3e20146f1e0ab2984387d15cff675151ec26b506 Mon Sep 17 00:00:00 2001 From: Rubens Date: Tue, 22 Sep 2015 10:43:53 -0300 Subject: [PATCH] Versionando --- Util.m | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Util.m b/Util.m index 7a52b0a..1784ef9 100644 --- a/Util.m +++ b/Util.m @@ -9,21 +9,6 @@ @implementation Util -/** Retorna a quantidade de linhas em um UITextView */ -+ (int) qtdLinhasTextView:(UITextView *) _textView { - - NSLayoutManager *layoutManager = [_textView layoutManager]; - unsigned numberOfLines, index, numberOfGlyphs = (int)[layoutManager numberOfGlyphs]; - NSRange lineRange; - for (numberOfLines = 0, index = 0; index < numberOfGlyphs; numberOfLines++){ - (void) [layoutManager lineFragmentRectForGlyphAtIndex:index - effectiveRange:&lineRange]; - index = (int)NSMaxRange(lineRange); - } - - return numberOfLines; -} - /** This method return a UIView First Responder of recursive form */ + (UIView *) findFirstResponder:(UIView *) _view {