romaonthego / REFormattedNumberField

UITextField subclass that allows numeric input in a predefined format.
MIT License
201 stars 37 forks source link

-[UITextField customOverlayContainer] SIGSTOP on iOS7 #16

Open Igor-Palaguta opened 8 years ago

Igor-Palaguta commented 8 years ago

Hello, On iOS7 can see interest issue. app stops due to this line: self.delegate = self here is workaround and description for this issue: http://stackoverflow.com/questions/19758025/uitextfield-delegate-jumping-to-100-cpu-usage-and-crashing-upon-using-keyboard

#0  0x000000018c7fd5d0 in -[UITextField customOverlayContainer] ()
#1  0x000000018c7fd444 in -[UITextField automaticallySelectedOverlay] ()
#2  0x000000018c77f364 in -[UIKeyboardImpl inputOverlayContainer] ()
#3  0x000000018c5d3320 in -[UIKeyboardImpl updateTextCandidateView] ()
#4  0x000000018c5d2eac in -[UIKeyboardImpl finishSetInputMode:didChangeDirection:executionContext:] ()
#5  0x000000018c5d411c in -[UIKeyboardTaskExecutionContext returnExecutionToParent] ()
#6  0x000000018c5d411c in -[UIKeyboardTaskExecutionContext returnExecutionToParent] ()
#7  0x000000018c5d411c in -[UIKeyboardTaskExecutionContext returnExecutionToParent] ()
#8  0x000000018c5d12d8 in -[UIKeyboardTaskQueue continueExecutionOnMainThread] ()
#9  0x000000018c5d4530 in -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] ()
#10 0x000000018c5d0ed4 in -[UIKeyboardImpl setInputMode:userInitiated:] ()
#11 0x000000018c6b4938 in -[UIKeyboardImpl recomputeActiveInputModesFromList:] ()
#12 0x000000018c5d5040 in -[UIKeyboardImpl setDelegate:force:] ()
#13 0x000000018c5cccf8 in -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] ()
#14 0x000000018c62ccc8 in -[UIResponder becomeFirstResponder] ()
#15 0x000000018c62cf8c in -[UIView(Hierarchy) becomeFirstResponder] ()
#16 0x000000018c6b20e4 in -[UITextField becomeFirstResponder] ()
Igor-Palaguta commented 8 years ago

Please check PR https://github.com/romaonthego/REFormattedNumberField/pull/17