返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2 views

How to cancelLocalNotification while user has disabled access to notifications in iPhone settings?

I'm facing the following problem: user have allowed access to notifications and then created a "reminder" (UILocalNotification) for specific time. Then user has disabled access to notifications in ...
0
votes
0answers
3 views

Objective-C Generic Response Types?

I have a wrapper for an API written in Objective-C that looks roughly like so: @interface MyAPI : NSObject - (void)getUsers :(UserRequest*)request :(void (^)(UserResponse *response))onResponse :(...
1
vote
2answers
35 views

Swift ViewModel properties can't access in ObjC

In Swift project contains, CartViewModel.swift @objc public class CartViewModel: NSObject { let apiService: APIService var alertMessage: String? { didSet { self....
-1
votes
0answers
7 views

How to Read Intelligent mail barcode using default camera?

I know how to read QR codes using default camera. But I want to read IMB Postal (4 State). I searched, but didn't find answer. Sample IMB is Thanks in advance,
0
votes
1answer
37 views

BOOL array in Objective-C

How can I declare an array of BOOL as a property in an Objective-C class? This is not correct: @property (nonatomic) NSArray<BOOL> *checked;
0
votes
0answers
11 views

How To find Login event in MacOS

I am trying to get notifications during user login and logout events programmatically. As of now I could figure out the logout events by using NSWorkspaceWillPowerOffNotification but not able to ...
0
votes
0answers
17 views

Xcode tvOS - How to detect when the Menu button on TV Remote is pressed?

I'm developing a tvOS app and I'm trying to programmatically detect when the Menu button on the Apple TV Remote is pressed with a tap gesture but the handleTap: won't get called. I show you the code. ...
-1
votes
0answers
21 views

Detect Hair and apply different hair color using opencv

I'm working in face detection app where I'm using opencv to get the facial landmarks along with this I need to detect Hairs. So that it can apply the different hair colors.
1
vote
0answers
20 views

Firebase analytics debug in iOS

I want to pass my QA a build with debug mode to see action live in Firebase debugView screen. It worked when added the "-FIRAnalyticsDebugEnabled" into the scheme and ran the app directly from Xcode, ...
-1
votes
1answer
39 views

Why do i have to use @synthesize for “protected” properties?

I have three classes: AbstractRenderElement PlaneRenderElement ButtonRenderElement Button inherits from Plane and Plane inherits from Abstract. I have five files: AbstractRenderElement.h ...
0
votes
1answer
22 views

Reaccess the same UIViewController across the app

Let says that I have an UITabBarController based app, and for example it got 2 tabs, VC A and B. I have VC X that will be used accross the app, no matter it will be pushed or modally presented. VC A ...
1
vote
2answers
55 views

duplicate row in table view

I want to create duplicate table view cell above the last tap cell which consist the data of last tap cell. But this is happening only bottom to top view.if i change the order it is return wrong value....
0
votes
0answers
11 views

Objective-C: Getting Value of Property on Non-Visible Custom UITableViewCell

I've been using the code below to access the value of a textfield in my custom UITableViewCell. Problem is, this only works for cells that are visible at the time the method is called. NSIndexPath *...
-2
votes
1answer
20 views

Getting class name in SWIFT equivalent to Objective C [self class]? [duplicate]

I am using the following syntax to debug my Objective C code, getting the class name. What is the equivalent in SWIFT? NSlog (@"Classe = %@",[self class]);
-1
votes
0answers
19 views

Connecting various UIViews by adding them to an invisible parent view

I have various UIViews in my app. I want to tap on one of the views, drag it and move it, and move all other views with it. The result should be that the relative positions of the UIViews should ...
0
votes
0answers
22 views

[JWNavigationController topViewController]: unrecognized selector sent to instance 0x7faf61425ef0'

In my old project i has used JWNavigationController for slider menu.in iPHONE6,iPHONE7 device working proper but when i am run app in iphonex, Xr ,Xs Max than app is crashed.i have set exception ...
0
votes
1answer
32 views

UITextView on top of UIButton

Say I have a UIButton of size 400x400. An UITextView with size of 400x200 inside at the bottom half of the button. The text view is not editable. But I want to be able to highlight certain text ...
0
votes
0answers
12 views

AVAssetWriter has an audio 'crackle' only on iOS 13 devices

I use AVCaptureSession to write to a mov file using AVAssetWriter. The same code on a pre-iOS 13 devices does not have the crackle. On all iOS 13 devices, regardless of iPhone/iPad model, have the ...
-2
votes
0answers
30 views

What's the best way possible to integrate SwiftUI in Objective c

What's best possible way to integrate SwiftUI in an app which is fully developed in objective-c.
0
votes
0answers
19 views

ubiquityIdentityToken returns value when signed in into iCloud but still returns value after signing out of iCloud

I am trying to check if a user is signed in into iCloud or not on Xode simulator. id token = [[NSFileManager defaultManager] ubiquityIdentityToken]; if (token) { _iCloudValue.text = @"Signed In"; ...
0
votes
1answer
19 views

Make font bold in iOS 13

I'm using the following code to make a font bold in an attributed string. This used to work fine but in iOS 13 it's giving me a bold Times font instead of the system font. I'm aware I can use -...
0
votes
0answers
9 views

Google Maps SDK: Show all markers on map OR if the map is too small focus on one specific point at max zoom level

I have an array of flights and I am drawing a map showing all these routes. Depending of course on the length of the flights, the map can show all at once or some might be cut off. In our app you have ...
0
votes
0answers
17 views

How to add different data type to an NSSMutableArray of that carries UIView instances

Given any NSMutableArray that contains objects of type UIView* Is it possible to add extra elements at t he end of the array so that these elements to be of a different type?? For example, the ...
0
votes
1answer
28 views

queryURL with swift does not work while it works with objective C

I need to work with some queryURL with swift. I am new to swift while I did this job with objective C once . and it worked correctly with objective C . here is the codes for my objective C project ...
0
votes
1answer
21 views

Change UIButton Color With Defined Color

I want to change my title color with an already defined color. Here's my code. #define GHOSTWHITE_COLOR ([UIColor colorWithRed:248/255.0 green:248/255.0 blue:255/255.0 alpha:1]); [loginBtn ...
0
votes
1answer
50 views

Objective-C, best way to handle NSTask that isn't finished

I have an asynchronous dispatch queue which reads data from large files in the background. During the course of that it does a few other things including some NSTask operations. The problem I'm facing ...
0
votes
0answers
15 views

How to use NSPasteboard with kPasteboardTypeFileURLPromise for copy/paste?

My application would like to add a promise to the pasteboard for a file that is stored remotely, and may never be pasted -- similar to pasting a file copied from a session controlling a VM or other ...
-1
votes
0answers
16 views

Header file not found in objectif

I am new to objectif-c and I am writing a native wrapper module in objectif-c for my react-native project. I have my header and implementation files in my project root directory (ios/), called Auth.h ...
0
votes
0answers
16 views

How to pass objc NSMutableArray as a Reference in Nativescript

I am creating a nativescript wrapper for a native plugin and trying to call the native method similar to this example: obj-C Code: NSMutableArray *availableScanners = [[NSMutableArray alloc] init]; ...
0
votes
1answer
19 views

I have two NSScrollViews configured to scroll in sync. My problem is that the enclosed table headers do not scroll horizontally. Any clue?

I am developing a Cocoa Application for macOS. I need two NSOutlineView to be in scroll sync. I have followed the well known Apple example and it works very well. I wanted to add horizontal scrolling ...
0
votes
1answer
49 views

Inserting into UITableView

I"m trying to populate a UITableView with contents of a file. Or at least that's my ultimate goal but for testing I just wanted to insert strings to test it out. I have a read and write button ...
-1
votes
0answers
18 views

MobileVLCKit ,VLC Player video support for Airplay Screen mirroring in iOS 13.0?

AVPlayer dont play mkv file so I have implemented VCL to play mkv file video and Now I want to play it on apple TV by airplay Mirroring option from streaming screen in objective c..Airplay is working ...
0
votes
0answers
22 views

-[UINavigationController selectedViewController]: unrecognized selector sent to instance 0x105ca6000

- (BOOL)tabBarIsVisible { UIViewController *vc = ((MSTabBarController*)self.window.rootViewController).selectedViewController; return self.tabBarC.tabBar.frame.origin.y < CGRectGetMaxY(vc....
0
votes
2answers
35 views

Create coloured circle based on value(360) or percentage(100%)

This code creating a complete circle but I want to create a circle based on value either 360 or percentage 100%. IF percentage is 56% I want 56% circle. Like this based on percentage/value, I want ...
-1
votes
0answers
12 views

lexical or preprocessor issue - 'string' file not found occurs when build

Bolts Group Starscream Group FBSDKCoreKit Group FBSDKLoginKit Group Pods-YuWeeShareExtension Group Lexical or Preprocessor Issue Group /leveldb-library/include/leveldb/slice.h:22:10: 'string' file ...
0
votes
0answers
24 views

UISwitch not working in Xcode 11 built application (app getting stuck while turning the UISwitch) [on hold]

I have built an application in Xcode 10.2 and UISwitch is working properly but. When I updated my Xcode to Xcode 11 there is a lot of change in UI. But most horrible was my application getting stuck ...
0
votes
1answer
25 views

When publishing a project (swift 4.2) in the AppStore, an error occurs when linking the libPrinterSDK library.a

All kind time of day. The project on Swift uses the SDK for blueTouth printer Mini Thermal Printer POS-5805DD. The libPrinterSDK library (included with the printer) has been added to the root of the ...
0
votes
0answers
14 views

IOS AVFoundation AVCaptureVideoDataOutput in IOS13 (or may be 12) use too much memory

I just update the system of my Iphone8 plus from IOS11.2 to IOS13.1.3. Then I found when I use AVCaptureVideoDataOutput, I will use more memory than before. The memory increase to 120M when I use '[...
0
votes
0answers
16 views

How to show app login through Google and Facebook that open in Safari browser, in full screen mode on iPhones?

After Modality changes that have come in iOS 13 and Xcode 11, I'm unable to show Google and Facebook logins in full screen using openURL: & handleURL:url. For normal view controllers, there is a ...
0
votes
0answers
22 views

Fatal Exception: DeviceNotSupportedException Device Not Supported

I keep getting crashes on Fabric for my iOS App. Fatal Exception: DeviceNotSupportedException: Device Not Supported At the signature of the function, +(NSString*) IPHONE_OS_VERSION // Fabric ...
0
votes
0answers
24 views

Navigation bar layout margins in ios 13 with xcode 11.2.1

How can I reduce the margins of left and right of navigation bar in ios 13. when we set layout margins to subviews of navigation bar it crashed the app. But below mentioned code is working fine in ...
-1
votes
0answers
19 views

In iOS UI Test, How can I add and fetch data from Keychain in Simulator? I got error code 34018 [on hold]

I am using "KeychainWrapper" for performing operations. I enabled keychain sharing capability. Entitlements file is also created. When I run on device it works fine, Unit test is also working fine, ...
0
votes
0answers
15 views

How i can set the auto print symenteneously 3-4 prints on epson tm-m30 printer

How I can set the auto print symenteneously 3-4 prints on Epson TM-m30 printer. Here is my code please check and provide the solution. if I remove the time delay this code will break and if I set the ...
-1
votes
0answers
20 views

Objective-c - Double not returning exact result of calculation [duplicate]

I am doing calculation in objective-c and my result is mismatched by few decimal places because double is not returning exact value. For eg. I am dividing 314 by 100. In ideal scenario 314/100 should ...
0
votes
0answers
59 views

Reset value by UITableView sections

I am building a personal budget app that tracks my purchases. I have an NSDictionary of NSArray that looks like this: { 46 = ( { DATE = "11/14/2019"; ID ...
-5
votes
0answers
29 views

What is the difference Between Protocols in ObjC and Protocols in Swift [on hold]

I have a interview type question: What is the difference Between Protocols in ObjC and Protocols in Swift And if is possible with an example! thanks
0
votes
1answer
37 views

How to manage transitive dependency for local Xcode projects

I have two Objective C dynamic frameworks X and Y and another Objective C app Z. All these frameworks and apps have been created by me locally. Framework X is the very base framework used by framework ...
0
votes
1answer
28 views

Flutter pass Uint8List to iOS Objective-c

I am trying to pass an image as Uint8List to native code Android/iOS from Flutter, but getting an error in iOS side. I am modifying a plugin and i never developed in iOS before. Here is the Flutter ...
0
votes
1answer
27 views

How to copy a button in iOS using NSKeyedArchiver

To copy a button, this has been working fine: NSData *archivedData = [NSKeyedArchiver archivedDataWithRootObject: btn]; UIButton *newButton = [NSKeyedUnarchiver unarchiveObjectWithData: ...
-1
votes
0answers
12 views

Auto renewable subscriptions in iOS Objective-C Tutorial needed [on hold]

Can anyone point me to a Objective C Tutorial for Auto renewable subscriptions in iOS? I have a few objective-C apps that are being converted to Auto renewable subscriptions. (I am currently learning ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞