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
1answer
11 views

Raect Native: Native Modules Props

i'm trying to make a Native Module in React Native. How can I access the uri in the view? const MyView = requireNativeComponent('RNTImageFilter'); <MyView uri={'test'} ...
0
votes
0answers
20 views

Downlaod the other app from server and run inline any native iOS app [closed]

I need to create a child app which need to upload on our own server. I will have another parent app with some functionality. I need to download the server app within our parent app and run the same ...
0
votes
0answers
8 views

How to replace MTLTexture getBytes:bytesPerRow:fromRegion:mipmapLevel: with MTLBlitCommandEncoder?

the apple doc of MTLTexture getBytes:bytesPerRow:fromRegion:mipmapLevel: say Don't use this for textures with a private storage mode. To copy data from a private texture, use a ...
0
votes
0answers
23 views

Preserve state of a view controller from multiple source segues

Scenario I have a mixed project of Objective-C and Swift with both a navigation controller and a tab bar controller. I have a view controller (the only controller that is written in Swift) that has ...
0
votes
1answer
11 views

Cannot fetch results with [[context executeRequest:fetchRequest error:nil] mutableCopy];

I am working on a new project and for that I reuse my old saving and fetching code that is working just fine in the old app. Unfortunately, it doesn't work in my new project where I'm doing something ...
0
votes
1answer
15 views

how to fetch specific data from Firestore and update it in Objective c

I have to fetch my user from Firestore and then I want to update my image which is string. I am completely new in objective c I am stuck at one place can you guys help me out thanks for help in adv. ...
0
votes
0answers
30 views

Trying to parse HTML string to attributed text doesn't work

A web service is giving me some strings with HTML tags like <b></b>, <i></i> and so on. I need to convert those strings to attributed text to be able to show them in labels. ...
-3
votes
0answers
28 views

Has anyone used mediapipe successfully in ios? [closed]

I try to use mediapipe in ios but it is always fail. this link is mediapipe(https://github.com/google/mediapipe)
0
votes
0answers
13 views

How can I determine the nearest node next to my current position and set it as my start node?

I implemented a Dijkstra algorithm to search the shortest distance between two nodes on a weighted graph (which is created on the map as you can see in the picture below). The algorithm works fine ...
0
votes
1answer
22 views

Wrong layout in UICollectionView

In my app I use several UICollectionView. When the number of cell aren't so much I've an issue that's explained from this image: I'm using this library for Horizontal layout ...
0
votes
0answers
10 views

Which class is better to put location delegate and usernotitfication delegate methods?

From Xcode 11 onwards, there are two classes : AppDelegate and SceneDelegate. Generally we put CLLocationManagerDelegate and UNNotificationDelegate methods in AppDelegate class. Now I am little bit ...
0
votes
1answer
32 views

stackview in custom table cell

In a custom table cell, I'm trying to hide/show view on a button click. I'm able to achieve this but couldn't able to remove the blank space. How to remove those blank spaces. I used auto constraints ...
0
votes
0answers
9 views

Why there are redundant displays?

I find some strange display in iPhone X(or XR). The following conditions are met: Use iPhone X(or XR) Use AVPlayerView Use Masonry Use [UIColor colorWithAlphaComponent] as view's backgroundView Use ...
-2
votes
0answers
21 views

Need fast help, C programm that load words from file, count them, print them on screen and save them in file sorted by alphabet [closed]

I need this for my school. I already created a program that you write words there and it saves to file. But this is very hard for me because I am a newbie in this. SO is here anybody who can help me ...
1
vote
1answer
31 views

Move scrollview up and down smoothly on up/down button press. objective c

I wanted to implement a UIScrollView that scrolls up and down on button press. What I want is that the scroll view keeps on scrolling smoothly when the button is pressed (in the pressed state). And ...
0
votes
1answer
21 views

NSTask output into a list

I try to list files/folder in a director by using NSTask, how do I get the output in each line into a list? I try print it out and it only display the first line. NSTask * list = [[NSTask alloc] init]...
1
vote
0answers
73 views

App crashing report alert in iOS 13 and above

Hi i got this Crash message alert while doing force update from app store. How to avoid such kind of crash alert programatically. I tried to check with in google no answer found.
-3
votes
0answers
47 views

Icon display weird on iPhoneX? [closed]

The first image is right size.The second one looks bigger.
0
votes
2answers
56 views

BOOL is returning YES for value 0 in objective c?

I have Invisible = 0 in my model and I am trying get this in BOOL using this line. BOOL invisible = [self.model objectForKey:@"Invisible"]; but invisible is YES instead of NO. I've also tried with ...
2
votes
0answers
23 views

Xcode error: Failed to parse IPHONEOS_DEPLOYMENT_TARGET: Could not parse version component from: '0

I am trying to run my app on iOS version 12.3.1 iPad. It's run well for the first time but after stopping the build and restart the process my build always failed with an error? error: Failed to ...
0
votes
0answers
12 views

Make Cocoa app open main window from menu bar icon [closed]

Looking for a link to a GitHub or something with an example of this, unless it's like a three line fix, or if there's some terminology I should be searching that will get me there easily. (Haven't ...
-1
votes
0answers
25 views

How to generate the unique identification of iOS apps

Our iosapp has been cracked. Because on some jailbreak machines, hackers have modified UDID, IMEI, IDFA, idfv, serial number and other system information that you can think of. And it looks random. We ...
0
votes
0answers
13 views

NSButton not responding to user clicks when NSView is added [closed]

I have a NSWindow where I have placed a NSButton. In the button action, I'm adding a view from a different view controller as a subview for the main view. I'm setting it's frame so that it appears ...
0
votes
0answers
18 views

Swift CocoaPod Library in Objective C Project Migration from Swift 3 to 4/5

I'm using a Swift CocoaPod in my Objective C project. Originally it was a Swift 3 project and I simply had to add the #import "-Swift.h" into my .m or .h file. I've since updated to the latest version ...
0
votes
0answers
24 views

Problem with using Swift in Objective-C target

I have an old Objective-C project, which has multiple targets, and some of the targets share a framework (let's call it CJDataKit) that's also written in Objective-C. I'm trying to add some Swift code ...
0
votes
1answer
14 views

Xcode - Include of non-modular header inside framework module error when archiving project

I'm currently trying to archive my project to finally update my app on the app store when I came across this issue. I'm getting this error on multiple files in the XlsxReaderWriter framework. ...
0
votes
0answers
12 views

How can I create an SHA-1 hash using a salt?

Our company has an existing Android app and server in place and I'm creating an iOS quivalent app. The Android app is creating a SHA-1 hash of data in conjunction with a salt which is used when ...
0
votes
0answers
30 views

SSL pinning not working (Objective C , using NSURLSession)

I checked at least 50 links on google and on here about SSL pinning on iOS , And no one is step by step clear about it .. I wish SO would let me do the bounty right now , this i am stuck since 2 weeks ...
0
votes
0answers
12 views

How to install .ipa file using ftp server without https?

is it possible to install .ipa file using ftp server. i download .ipa file into ftp server to document directory. how to install it on click event without https.
0
votes
1answer
18 views

Objective-C: How to define static const struct dynamically?

I know that the topic is looking super strange but I've got from previous developer very strange approach for developing menu. The Menu Items is in Statical Structure and it's spreaded through a lot ...
0
votes
1answer
9 views

Can't Drag from NSTableView with more than one row

I'm writing an app that should allow me to drag items from an NSTableView to another view (custom timeline view). This works perfectly as long as there is only one item in my NSTableView. The fist ...
1
vote
1answer
29 views

Objective-C: Outside class variable definition through function

I've got from previous developer inheritance where the variable defined outside the class: StaticItemsList[] = { @"Item1", @"Item2", @"Item3" }; @implementation -(void) someMethod {} @end And ...
0
votes
1answer
17 views

CoreML and YOLOv3 performance issue

currently I am facing issue with performance of YOLOv3 implemented in objective-c/C++ XCode project for MacOS, however the performance is too slow. I do not have much experience with MacOS and XCode ...
0
votes
0answers
20 views

One Side Corner Radius issue inside the uitableviewcell in ios objective c

Am Trying to draw a one side corner radius using UIBezierPath class but it will not taking the full width inside the UITableviewcell. What should i do? UIBezierPath *maskPath1 = [UIBezierPath ...
0
votes
1answer
33 views

How to add base localization file in Localizable.strings

I have and existing project which is using Base localisation.which have the file Localizable.strings(Base) Like below screenshot I need to give support of Base localisation for my another existing ...
0
votes
0answers
43 views

How to make swift Equatable enum available in Objective-C [duplicate]

Equatable enum created in Swift is not available in Objective-C. I tried as below @objc enum ViewModel: Equatable { case heading(String) case options(id: String, title: String, ...
0
votes
0answers
14 views

How to use iOS Profiles Certificates for NSUrlSession request

I have: Secured backend with access via https; Installed user certificate (.p12) on Settings > General > Profiles; I can: Do success requests to the server from safari (system provides ...
-5
votes
0answers
24 views

How to implement Critical path algorithm in iOS swift? [closed]

i want to implement critical path algorithm in my iOS project, i am searching it on google from last two days but not getting any implementation. i have clear idea that logically how it will work, but ...
1
vote
0answers
15 views

Domain Associate not working on one application even the same scenario working on of other application

I have one server where i land 3 domain all have same root where i uploaded my AASA(apple-app-site-association) File when i am testing from url validator its validating all domains successfully but ...
0
votes
0answers
38 views

How to read a large Rich Text Format(.rtf) file. (such as 30M) with Objective-C

How to correctly read a large Rich Text Format (*.rtf) files with Objective-C? E.g. The file: test.rtf is about 20MB big, and I need to display the content on a TextView. In order to load data fast ...
0
votes
0answers
16 views

Ios keyboard rotation Issue

I have an app which is Landscape only, just one ViewController is in landscape. Therefore my View is contains three possible orientations: Portrait and both Landscape. I am using NSNotification.Name....
0
votes
0answers
13 views

Why is my Progress HUD not displaying as expected

I'm trying to develop a 'passwordless' registration form using a QRCode. The background processing works (can authenticate user), but noting happens visually until the registration is complete and the ...
0
votes
2answers
19 views

How do I solve linker errors from the Cocoapods lint command?

I have a library written for iOS in Objective-C that we publish via Cocoapods, and recently I've been getting a pair of link errors when I try to validate the pod with the pod lib lint command. Both ...
0
votes
1answer
28 views

Crash Exception: NSInvalidArgumentException -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]

I am getting this crash in my crashlytics report and this is only happening in iPhone 7(iOS 13.*). I have tried to debug this crash in simulator and real devices also but it is not crashing in any of ...
0
votes
0answers
24 views

Why do iOS Data Protection delegates getting called unexpectedly?

While working in an iOS project, I have configured the file protection entitlement to "Protect Until First User Authentication" which means data won't be protected after first unlock after a device ...
0
votes
0answers
28 views

Can c file read localized string in Xcode?

App is written in Objective-c, but it also needs some c files. And the c files contain some strings need to be localized. Such as: sprintf("%dx%d, %d balls", w, h, ballCount); printf("Hello"); ...
1
vote
0answers
19 views

Why do iOS Data Protection delegates getting called multiple times?

While working on iOS, Objective C, I found the delegate of UIApplicationDelegate, applicationProtectedDataDidBecomeAvailable is getting called multiple times after device unlocked. What could be the ...
0
votes
0answers
24 views

iOS - Crash with SpriteKit when app is in background

I'm using SpriteKit to display an animation. It seems the app is crashing when the SKView is rendering with OpenGL while the app is in the background (not permitted). I'm pausing the view when the ...
0
votes
0answers
30 views

How to implement upside down support for iPhone X, XS, 11?

Known fact that there is not native upside-down support on newest iPhones like iPhone X, XS, 11, and at the bigger versions. But I've seen some apps support this mode and autorotate on orientation ...
-1
votes
0answers
20 views

Can someone explain what this standalone property does? [closed]

I don´t get what this property does: Im my ***@interface DijkstraNodeModel : NodeInPath @property(nonatomic, assign) DijkstraNodeModel *pathPrev; and then in the implementation: @synthesize ...