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.
291,093
questions
0
votes
0answers
14 views
Compilation issue in building jitsiMeet SDK 2.11.0 on xcode 12.2
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/ankitk/Library/Developer/Xcode/DerivedData/jitsi-meet-ferllufkkwhoynapkghzgrlqsqpx/Build/Intermediates.noindex/...
-1
votes
0answers
24 views
Override init with frame not working correctly [closed]
I created custom class and wrote init like this
@objc class CustomDatePicker: UIDatePicker {
override init(frame: CGRect) {
super.init(frame: frame)
setDatePickerStyle()
}
required init?(...
0
votes
0answers
19 views
How to save the web page for offline in WKWebView?
In WKWebView.h,
I came through this method:
-(void)createWebArchiveDataAtLocationWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(11.0), ...
-1
votes
0answers
18 views
UITraitCollection always returns UIUserInterfaceStyle while detecting light mode or dark mode
I need to change the color of UIs depends on which theme mode the device is using.
After a few researches, I tried this:
-(BOOL)isDarkMode{
if (@available(iOS 13.0, *)) {
if( self....
0
votes
1answer
17 views
How can I draw an overline in a UILabel?
I'm trying to draw an overline (as opposed to strikethrough or underline) within a UILabel. So far I have not seen any direct way to implement this using NSAttributedString. Is there any way to do ...
0
votes
0answers
13 views
CGImageCreate: invalid image alphaInfo
I am getting a weird error that I am not able to pin point which part of the code is causing it.
When running an iOS app that uses the camera image to detect barcodes, I get the following error:
2020-...
0
votes
1answer
13 views
How can I add a UISwitch to a specific UIScrollView?
how can I add a UISwitch to a specific UIScrollView? As I guess it can be done with a tag, but I am having difficulties.
My example code with UIScrollView and UISwitch:
@implementation NSPage {
...
0
votes
1answer
20 views
iphone app for MQTT and adafruit objc not working
I have built a MQTT client on an ESP8266-01 which gathers sensor data and publishes it to my account dashboard on Adafruit.com. I also built one on an ESP8266-12e which subscribes to my Adafruit ...
0
votes
1answer
36 views
How to add a Swift example project into my own cocoa pod project
I created my own cocoapod library in Objective-C and it works well.
*Now, I am going to add some features into the library, and I got a Swift example project.
The problem is that the Swift example ...
0
votes
1answer
21 views
How to use object-c to get macos audio output devices
I can only get audio input devices
NSArray* adevices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeAudio];
for (AVCaptureDevice* device in adevices)
{
NSLog( @"%@\n", device....
0
votes
0answers
12 views
How to hide controls view only even with controls props are set true in react-native-video in ios?
Even if controls are enabled i just want to hide controls view only because if controls are enabled it shows the playback in notification centre the only thing i want to achieve is to hide controls ...
1
vote
1answer
31 views
Setting UITextField constraints to continue in newline
I've got UITextField widget inside a xib view controller with Scrolls layout, and I wish to set it with a proper string during runtime.
However, the string length may exceed the containing view ...
0
votes
0answers
8 views
How to find the objc4(Runtime/libobjc.A.dylib) version corresponding to the ios system version [closed]
How to find the objc4(Runtime/libobjc.A.dylib) version corresponding to the ios system version
1
vote
1answer
33 views
what kind exception is a decimal number exactness error?
Read about swift program exceptions in NSExceptionName,the explanation about decimalNumberExactnessException confused me.What exactly is decimal number exactness error and what kind code could get a ...
0
votes
0answers
19 views
Module 'Mixpanel' not found. mixpanel-iphone
Integration Method: CocoaPods
Xcode Version: 12.1
Library Version: 3.6.3
Platform: iOS
Language: Objective-C
Description: Issue when integrating Mixpanel Notification Service, Module Mixpanel not ...