Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
Cassiterite's user avatar
-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 ...
Shilai Zhang's user avatar
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 ...
user6631314's user avatar
  • 1,868
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: ...
Shilai Zhang's user avatar
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 ...
F. S.'s user avatar
  • 13
-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 ...
Mev's user avatar
  • 1,583
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, ...
Chaithra's user avatar
-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 ...
Meluha's user avatar
  • 1,534
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 [...
praveen's user avatar
  • 11
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 ...
Anwarul Islam's user avatar
-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. ...
Vasil Miadzvedzeu's user avatar
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 ...
user6631314's user avatar
  • 1,868
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 ...
Rajesh's user avatar
  • 21
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 ...
Martin Ma's user avatar
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 ...
이재빈's user avatar

15 30 50 per page
1
2 3 4 5
854