Post

Replies

Boosts

Views

Activity

App won't launch
at iOS. In Swift,I'm thinking of launching an app using a URL scheme UIApplicatio.shared.open(URL(string:"AppURLSchemeName")) I get a Error. Error: Domain = NSOSStatusErrorDomain Code = -50 "invalid input parameters" UserInfo=`{NSDebugDescription = invalid input parameters,_LSLine =249, _LSDLine = 249, __LSFunction = _LSDOpenClient openURL:filehandle:options: completionHandler } the environment is macOS Ventura 13.0 XCode vertion 14.0.1 iPhone 13 mini iOS 16.1 what's the issue
1
0
1.3k
Nov ’22
how use UnsafeMutablePointer<>
I need to use UnsafeMutablePointer <> to use a third party API. I'm using swift to create an iOS app. I use after declare, I was told that initialization was needed. after initialize, i Get a Error "Editor placeholder in source file". How should I initialize it? Below is a code. var value : UnsafeMutablePointer value.initalize(from; UnsafePointer , count: NumberOfArray)  // I get an error hear.
0
0
280
Jul ’22
object is call by reference
I'm using SwiftUI I want to object is call by reference when the screen transitions from ContentView to RemoteController @ObservedObject became an error with "Cannot assign to property:'self' is immutable" I want to use the same object for both ContentView and RemoteController Is there any solution? Below is the code struct ContentView: View{ @State var Object : Controller? @ObservedObject var inputObject : SDController var body: some View{ NavigationView{ VStack{ Button(action: { Object = Controller.init(postEventsToMain: true) inputObject = Object! // error "Cannot assign to property:'self'is immutable" }) NavigationLink( destrination: RemoteController()){ RemoteController().environmentObject(inputObject) } } } } struct RemoteController:: View{ @EnvironmentObject private var inputObject : Controller var body: some View{ ........ } } class Controller: ObservableObject{ ........ init(postEventToMain : Bool = true){ ......... } }
0
0
377
Jun ’21
SwiftUI Slider Control Value is change
I want to change the value with a slider control. slider(value: $value) ... ... ... value = 1 Can't change slider value when debugging. slider value want to change and I want to change it by user's operation. how to do?
Replies
1
Boosts
0
Views
290
Activity
Mar ’23
App won't launch
at iOS. In Swift,I'm thinking of launching an app using a URL scheme UIApplicatio.shared.open(URL(string:"AppURLSchemeName")) I get a Error. Error: Domain = NSOSStatusErrorDomain Code = -50 "invalid input parameters" UserInfo=`{NSDebugDescription = invalid input parameters,_LSLine =249, _LSDLine = 249, __LSFunction = _LSDOpenClient openURL:filehandle:options: completionHandler } the environment is macOS Ventura 13.0 XCode vertion 14.0.1 iPhone 13 mini iOS 16.1 what's the issue
Replies
1
Boosts
0
Views
1.3k
Activity
Nov ’22
how use UnsafeMutablePointer<>
I need to use UnsafeMutablePointer <> to use a third party API. I'm using swift to create an iOS app. I use after declare, I was told that initialization was needed. after initialize, i Get a Error "Editor placeholder in source file". How should I initialize it? Below is a code. var value : UnsafeMutablePointer value.initalize(from; UnsafePointer , count: NumberOfArray)  // I get an error hear.
Replies
0
Boosts
0
Views
280
Activity
Jul ’22
object is call by reference
I'm using SwiftUI I want to object is call by reference when the screen transitions from ContentView to RemoteController @ObservedObject became an error with "Cannot assign to property:'self' is immutable" I want to use the same object for both ContentView and RemoteController Is there any solution? Below is the code struct ContentView: View{ @State var Object : Controller? @ObservedObject var inputObject : SDController var body: some View{ NavigationView{ VStack{ Button(action: { Object = Controller.init(postEventsToMain: true) inputObject = Object! // error "Cannot assign to property:'self'is immutable" }) NavigationLink( destrination: RemoteController()){ RemoteController().environmentObject(inputObject) } } } } struct RemoteController:: View{ @EnvironmentObject private var inputObject : Controller var body: some View{ ........ } } class Controller: ObservableObject{ ........ init(postEventToMain : Bool = true){ ......... } }
Replies
0
Boosts
0
Views
377
Activity
Jun ’21