All Questions
Tagged with swift objective-c
12,804
questions
1
vote
1
answer
28
views
How can I mock an Objective-C class from Swift code for unit testing?
I'm trying to unit test a Swift class that depends on an Objective-C class. Call these SwiftClass and ObjcClass.
I created a protocol that contains the methods/properties of ObjcClass that SwiftClass ...
-1
votes
0
answers
22
views
How to call "AutoFill Password" dialog like click password button in iOS system keyboard?
I want call "AutoFill Password" dialog like click password button in iOS system keyboard. Is Any iOS API can do that?
I've try using ASAuthorizationPasswordRequest and ...
0
votes
1
answer
51
views
Retrieve an audio file such as an mp3 from the documents directory in Objective-C or Swift
I would like to store and retrieve audio files such as MP3s in the user's documents directory. When I do this with images I can simply fetch the file as a UIImage. However, I'm struggling with what ...
0
votes
1
answer
35
views
AutoFill password into UITextField
I want to implement such a function: a password UITextField, using the system Jiugongge numeric keypad(textField.keyboardType = .numberPad), and enable to automatically fill the password. like this:
...
0
votes
0
answers
29
views
Can we customize how parameters and return types are imported from Objective-C into Swift?
I have an Objective-C class that is a proxy to an NSDictionary.
@interface DictionaryProxy : NSProxy
-(id)objectForKey:(id)key;
-(void)setObject:(id)obj forKey:(id<NSCopying>)key;
@end
I have ...
-1
votes
0
answers
55
views
SwiftUI Scroller flashing entire collection when inserting new data
I Have a SwiftUI view which is a collection that displays each item on a full screen sized view. While the user is viewing and interacting with the items (it's a view that shows photo or video that ...
0
votes
0
answers
38
views
How can I initiate a new URL request using an already loaded WKWebView?
I have opened a WKWebView with "https://www.google.com", for example. After that, I put my app in the background. When I try to open a new URL request in the same web view with a new link, ...
-1
votes
0
answers
25
views
Fetching data while UITableView Scroll
I have caught up in specific situations and cannot find a proper solution.
I have historic data and details are getting fetched via API1 and details are displayed in TableView
e.x
Name - Phone No
...
0
votes
0
answers
45
views
The request signature we calculated does not match the signature you provided. Check your key and signing method in objective-c in iOS , Xcode 15
We are using AWS-IOS-SDK to upload images and text.
error occurred in Xcode 15 but working good in Xcode 14 ,we used the same source code for both versions.
Please check the error message
AWSiOSSDKv2 [...
0
votes
0
answers
20
views
How to Reactivate the Last Focused Window After My Qt App Closes on macOS
I'm developing a screenshot-taker application using Qt and need some assistance with macOS-specific behavior.
Here’s the scenario:
When I take a screenshot, my application becomes focused to allow ...
-1
votes
0
answers
32
views
macOS App Sandbox - access to ~/Documents folder [duplicate]
I have existing macOS application
the application is distributed via pkg
now I need Mac App Store version
I store application data in ~/Documents/MyApp
ideally i wan't to keep using same folder
1. ...
1
vote
0
answers
36
views
Reference variable in Store.swift class from Objective-C file using singleton pattern giving Linker command failed error
I am trying to reference a variable in a Swift class from an Objective-C view controller.
I can reference functions and variables in other Swift Classes from this Objective-C class. However, when I ...
0
votes
1
answer
49
views
Difference between String in Swift and NSString in Foundation(Objective C)
What is the actual difference between String in Swift and NSString in Foundation(Objective C).
I have seen all functions of NSString can be applied to String in swift. For example ...
0
votes
0
answers
71
views
Undeclared identifier 'nullptr' and Obj-C error while using Obj-C library in Swift
No prior knowledge for using external library in Swift.
I was trying to include sf-proj-ios in my empty project named "Test". I followed instruction on the library GitHub, used commands on ...
0
votes
0
answers
21
views
How can I update running(activated) system extension in mac?
Now we are trying to update our security solution. The solution is built with endpoint security extension, and it's already distributed for all clients, and we want to update them.
But it seems like ...