Conversion from objective-c to Swift "->" operator -
i trying convert code objective-c swift , having issues following code. can provide me swift example.
linphonemanager *instance = [linphonemanager instance]; instance->currentcallcontextbeforegoingbackground.call = call; instance->currentcallcontextbeforegoingbackground.cameraisenabled = linphone_call_camera_enabled(call);
-> c declaration tells compiler variable pointer. can used set values in pointer. swift equivalent, if linphonemanager struct, instance.memory.currentcallcontextbeforegoingbackground.call = call
if used on objective-c classes, gets value of instance variable (ivar). there no swift equivalent: have change values via properties , methods.
Comments
Post a Comment