I'm experiencing an issue in my iOS app where tapping to select text in a UITextView that is embedded within a UIScrollView causes the scroll view to jump to an incorrect position. This problem seems to occur only on iOS 15. Does anyone know how to fix this issue, or is there a known bug regarding this behavior on iOS 15?
class ViewController: UIViewController, UITextViewDelegate, UIGestureRecognizerDelegate {
@IBOutlet weak var textView: UITextView!
@IBOutlet weak var scrollView: UIScrollView!
override func viewDidLoad() {
super.viewDidLoad()
textView.isScrollEnabled = false
textView.layoutManager.allowsNonContiguousLayout = false
}
}
Post
Replies
Boosts
Views
Activity
I am currently developing an Share Extension for iOS and have run into an issue where the NSExtensionActionWantsFullScreenPresentation attribute doesn't seem to be working as expected. I've set this property to true in my Info.plist
I have a question regarding the Live Activities feature introduced in iOS 16.1.
According to the documentation, Live Activities can be updated via push notifications. However, I am curious to know if Live Activities can still receive updates via push notifications when push notification permissions are turned off for an app.
Could you please clarify whether Live Activities updates are independent of the push notification permissions setting, and if so, how the update mechanism works in this scenario?
Thank you for your assistance.
Best regards,
xcode15 beta6
iphone 12 pro、iOS 17 beta6
class ViewController: UIViewController {
@IBOutlet weak var subView: UIView!
@IBOutlet weak var imageView: BFAnimatedImageView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
imageView.layer.setNeedsDisplay()
}
}
class BFAnimatedImageView: UIImageView {
override func display(_ layer: CALayer) {
super.display(layer)
}
}
console log
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[display.BFAnimatedImageView displayLayer:]: unrecognized selector sent to instance 0x105809b30'
*** First throw call stack:
(0x18d3635e0 0x1856bbc00 0x18d3f3eec 0x1902a2830 0x18d2a8554 0x18d3e9860 0x104098f08 0x104098f74 0x18e8d3470 0x18e8d98a0 0x18e8d2b90 0x18f7a62d4 0x18d2adb58 0x18d2ac34c 0x18d2aa24c 0x18d2a9e18 0x1ce9675ec 0x18f6b7400 0x18f6b6a3c 0x18f8d9f10 0x104099ad0 0x104099a48 0x104099b4c 0x1afa3fd44)
libc++abi: terminating due to uncaught exception of type NSException
why crashed.....