Hi team,
We have implemented a writing tool inside a WebView that allows users to type content in a textarea. When the "Show Writing Tools" button is clicked, an AI-powered editor opens. After clicking the "Rewrite" button, the AI modifies the text. However, when clicking the "Replace" button, the rewritten text does not update the original textarea.
Kindly check and help me
showButton.addTarget(self, action: #selector(showWritingTools(_:)), for: .touchUpInside)
@available(iOS 18.2, *)
optional func showWritingTools(_ sender: Any)
Note:
same cases working in TextView
pfa
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
We rotate the portrait to landscape then we force rotate to portrait app rotates but the screen seems to be divided into two parts
My sample code
class OrientationHelper {
static func lockOrientation(_ orientation: UIInterfaceOrientationMask) {
if let delegate = UIApplication.shared.delegate as? AppDelegate {
delegate.orientationLock = orientation
}
}
static func lockOrientation(_ orientation: UIInterfaceOrientationMask, andRotateTo rotateOrientation: UIInterfaceOrientation) {
self.lockOrientation(orientation)
DispatchQueue.main.async {
UIDevice.current.setValue(rotateOrientation.rawValue, forKey: "orientation")
UIViewController.attemptRotationToDeviceOrientation()
}
}
}
// Appdelegte
var orientationLock = UIInterfaceOrientationMask.portrait
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return orientationLock
}
Topic:
UI Frameworks
SubTopic:
UIKit
how do I stop screen recorder/capture on iOS 14. have any native API for this?. have privacy/security concern for my app so kindly help me.
Thanks
I am trying to implement both ContextMenu and Drag&Drop in UITableView like Apple home screen or Photo app, but the contextual menu prevent dragging in iOS.
I didn’t achieve this. apple provide any separate API for this?
Hi team,
we have any separate API for dragging with contextual menu?. kindly update it.
Thread 16 Crashed:
0 libobjc.A.dylib 0x00000001b34d71c8 0x1b34d5000 + 8648 (objc_msgSend + 8)
1 CoreFoundation 0x000000019eaab688 0x19e955000 + 1402504 (redacted + 976)
2 CoreFoundation 0x000000019eaaf64c 0x19e955000 + 1418828 (redacted + 2412)
3 CoreFoundation 0x000000019e9c1300 0x19e955000 + 443136 (CFDictionaryRemoveValue + 300)
4 CoreData 0x00000001a4b7e4e4 0x1a4b35000 + 300260 (redacted + 124)
5 CoreData 0x00000001a4b5da30 0x1a4b35000 + 166448 (redacted + 860)
6 CoreData 0x00000001a4c7e7a8 0x1a4b35000 + 1349544 (redacted + 72)
7 CoreData 0x00000001a4c74754 0x1a4b35000 + 1308500 (redacted + 164)
8 libdispatch.dylib 0x000000019e66b7ec 0x19e667000 + 18412 (redacted + 20)
9 libdispatch.dylib 0x000000019e672fd4 0x19e667000 + 49108 (redacted + 620)
10 libdispatch.dylib 0x000000019e673bd0 0x19e667000 + 52176 (redacted + 404)
11 libdispatch.dylib 0x000000019e67e48c 0x19e667000 + 95372 (redacted + 764)
12 libsystem_pthread.dylib 0x00000001ea5b67a4 0x1ea5b3000 + 14244 (_pthread_wqthread + 276)
We have updated latest build via xcode12.4 after we faced CrashDoctor Diagnosis: Attempted to dereference garbage pointer 0xb338740acf3dc9 crashes.this crashes frequently for ios14 devices
We have added our app crash logs details here.Kindly check and update
Previously we used xcode 11.7
Logs - https://developer.apple.com/forums/content/attachment/fe7d4bab-1b34-4900-995b-055468770e65