bst365体育投注网址大全

Questions tagged [objective-c]

This tag should be used only on questions that are about Objective-C features or depend on code in the language. The tags [cocoa] and [cocoa-touch] should be used to ask about Apple's frameworks or classes. Use the related tags [ios], [macos], [apple-watch] and [tvos] for issues specific to those platforms.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Weird ViewController UI breaks

I am calling one SDK built by another company , where in they're presenting a view controller and then dismissing once the user is done working on it. When the control reaches back to us, our ...
0
votes
1answer
29 views

Objective-C class property type not exposed to Swift

I got a Swift Project with an Objective-C library linked via CocoaPods. It works fine, I can call all methods etc. Also my Bridging-Header is existing and working. But I got a problem with some ...
0
votes
0answers
26 views

Can't call init function when calling Swift code in Objective c code

I am trying to call Swift code from my objective C code. In my Swift class I have put @objc in the class and the init method, like @objc public class SwiftClass: NSObject { @objc public init(name:...
0
votes
1answer
20 views

NSURLConnection Delegate method not being called

I'm new to Objective-C and I've been working on some old code trying to dynamically check if SSL-certificate errors should be ignored or not. I have already set a NSURLConnection delegate and its ...
0
votes
0answers
24 views

Determine macOS 10.15 or older [duplicate]

New to objective-C and macOS, My goal is to figure out whether platform on which application is running is Catalina 10.15 or an older platform. (App can be running on any platform from 10.5 to 10.15). ...
0
votes
1answer
16 views

How can I add values to NSArray of different class A from Class B

I have my .m file where I need to update NSArray of class B, where I should be able to the values from that array. I am trying this in Class A // TabHeaderViewModel.h typedef enum { ...
0
votes
0answers
13 views

Only in iOS 14 , my uiwebview crash in stringByEvaluatingJavaScriptFromString

In UIWebview, when I call stringByEvaluatingJavaScriptFromString: the second time, the program crashes, which only happens in iOS 14, do you have this question? Is UIWebview updated in IOS 14? What ...
0
votes
1answer
12 views

Update deprecated webkit objc items to enable native code running within javascript

I'm using legacy webkit based application to generate form on macOS native app (cocoa application written in objective-c) The following callback to called right before the javascript is loaded to view,...
0
votes
1answer
27 views

UIButton appearing incorrectly

I'm having a lot of difficulty trying to figure out how to make a UIButton look right. Essentially, it's supposed to look this this: The UIButton is setup in a storyboard and has the appropriate ...
0
votes
0answers
17 views

When installing RubyCocoa, I got the error “error: too many arguments to function call, expected 0, have 3”

I want to install RubyCocoa. I am proceeding with the following steps. % brew install ruby ・Add /usr/local/opt/ruby/bin to the path % ruby -v ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-...
0
votes
0answers
16 views

Dynamically instanciating ObjC class in Swift (with NSClassFromString?)

I have an ObjC class with an init method -(instancetype) initWithApiKey: (NSString *) key order: (NSNumber *) order In ObjC I dynamically create it with the following code: id classAllocation = [...
0
votes
1answer
30 views

How to fix the incompatible block pointer types sending error?

The Build fails because of the incompatible block pointer types sending error in xcode 11.5. - (NSURLSessionDataTask *)retrieveSourceWithId:(NSString *)identifier clientSecret:(NSString *)secret ...
1
vote
1answer
26 views

Subclassing an Objective C class using Swift in a framework target

I have a framework target in which most of the classes are written in Objective C. Recently we have started introducing Swift files in the code. We make private Objective C files available to swift ...
0
votes
0answers
14 views

How to start ui testing with screenshots [closed]

I want to start using screenshot based ui testing. I searched online and found some articles but I'd like to ask you guys how do you test UI with screenshot. Java and objective-c developer, using ...
0
votes
1answer
38 views

How to load black white image into metal texture

I use two methods to load black white image texture in metal as below: //1. mtltexture01 = [textureLoader newTextureWithName:@"texture02" ...

15 30 50 per page
1
2 3 4 5
19352