Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextField -webView no longer supported

I get the below debug output when working with some text fields.

UITextField -webView called. This method is no longer supported with the new text architecture

Can someone explain why this is appearing?

I am currently running XCode 5 with iOS 7

like image 675
LanceJeffrey Avatar asked Sep 29 '13 03:09

LanceJeffrey


2 Answers

In previous iOS versions before iOS 7 all UITextFields and UITextViews had underlying UIWebView to show formatted text. Starting from iOS 7 formatted text is drawn using TextKit framework, so -webView property become deprecated.

It seems Apple frameworks still call the webView method internally.

like image 191
Roman Kabachenko Avatar answered Nov 11 '22 07:11

Roman Kabachenko


Resetting the simulator solved the issue for me.

  • XCode Version 5.1.1
  • iOS simulator(s) 7.1
like image 32
HpTerm Avatar answered Nov 11 '22 08:11

HpTerm