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

Objective-c replacing UIWebView with WKWebView

I am replacing UIWebViews with WKWebViews in my Objective-C project. Due to other posts on this site I've been able to convert the code and using custom fonts in the HTML. However, the content is ...
0
votes
0answers
19 views

Selecting rows in NSTableView inside a container view

In my interface I need to provide two NSTableViews in the same window that are structurally the same, but present different data to the user. I'm using storyboards and to do this, I've placed two ...
0
votes
1answer
23 views

when is the speech recognition in iOS restricted i.e requestAuthorization returns `SFSpeechRecognizerAuthorizationStatusRestricted`

I'm making an app which will be using Speech Recognition and want to know how frequently or when will my app encounter this scenario I know that this related to device restricting Speech recognition ...
0
votes
0answers
13 views

iOS int names[] = {CTL_HW, HW_PHYSMEM} the return HW_PHYSMEM value is negative

My code is as follows, it's working fine on old device eg: iPhone 6, iPhone7, but it's not working on iPhone XS Max, it's return -378535936 on my iPhone XS Max. Does anyone know the reason? any ...
1
vote
0answers
18 views

CBCentralManagerDelegate: didDiscoverPeripheral: advertisementData: in iOS 13 don't have kCBAdvDataServiceUUIDs

In iOS 13 not getting the kCBAdvDataServiceUUIDs key from the method -(void)centralManager: (CBCentralManager*)central didDiscoverPeripheral: (CBPeripheral*)peripheral advertisementData: (...
0
votes
0answers
22 views

How to share audio file from url in ios

I want to share an audio files from my app to WhatsApp,google drive, dropbox, etc.. so these audio files I am getting from server-side in JSON response when I am trying share it is sharing as URL but ...
-2
votes
0answers
27 views

DispatchQueue.global(qos: .background) not called on real device [on hold]

The DispatchQueue.global(qos: .background) works on Simulator. But not in device: DispatchQueue.global(qos: .background).async { let maker = VideoMaker(images: images, movement: ImageMovement....
1
vote
0answers
25 views

How to handle CloudFront Signed Cookie with .m3u8 files on iOS?

I have an App which is playing audio files stored on AWS. The audio content is secured by AWS CloudFront signed cookies functionality. I had no problem in creating the signed cookies and set them in ...
0
votes
0answers
16 views

Update Keychain kSecAttrAccessible with SecItemUpdate returns -50

I'm trying to update the kSecAttrAccessible of my Keychain item based on mbinna question's. The problem is that the following code returns -50 for the updateItemStatus variable. I took I look in a ...
0
votes
1answer
36 views

Type conversion to UInt8 [] from UInt8 gives an error

I've defined a struct like so: typedef struct __attribute__((packed)) { UInt8 a; UInt16 b; UInt8 c[15]; } myStruct; When I try to get value UInt8 c = packet->c; I receive the ...
1
vote
1answer
45 views

How to make a subpath with no lines?

I have this code to round sections in tableView: - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if ([cell ...
0
votes
0answers
8 views

AVAssetWriterInputPixelBufferAdaptor sometimes throws exception when recording video

I'm currently using an AVAssetWriter, AVAssetWriterInput and an AVAssetWriterInputPixelBufferAdaptor to record videos locally. It works but sometimes it will throw an exception. >>>...
0
votes
0answers
37 views

The subclass of NSIncrementalStore causes infinite recursion after iOS upgrade

When calling metadataForPersistentStoreOfType:URL:error: to get metadata for custom NSIncrementalStore, the method causes an infinite loop. Inside subclass of NSIncrementalStore I have code like ...
-1
votes
0answers
18 views

Unit test : Undefined symbols for architecture arm64: ld: symbol(s) not found for architecture arm64 [on hold]

i'm using the unit tests .I Had a problem in compilation of the target test of my project. i'm facing this issue and since 2 days i did not find the solution for it.enter image description here
-2
votes
0answers
22 views

Swift - Draw polygon on selection using maps [on hold]

enter link description hereI want to give selection of field for the user. User will mark some points on map and design polygons later I have to get all polygons attitude and longitude. While ...
-2
votes
1answer
33 views

iOS 13 UITabBar RePosition to Top

I have followed this answer to reposition my tabbar to top of the page. It was working perfect until iOS 13 release. In iOS 13 the tabbar is visible on bottom of the screen. Any other workaround ...
-4
votes
0answers
20 views

PayuMoney Surl is Invalid [on hold]

I have implemented PlugNPlay. Its working fine with the existing URL provided by PayUMoney. The problem comes when I'm trying with the below URL. The below URL works fine with android. NSString *...
1
vote
0answers
19 views

Getting problem with NSUndoManager undo and redo actions

I am using NSUndoManager for undo and redo options. I drag a view from one place to another. Dragging done multiple times. Now if do undo its working fine. It moves to the first place. But if I do ...
-4
votes
0answers
9 views

How to find all navigation data(speed, coverdDistance, road speed, etc) when we have a no route in HERE map [on hold]

i Can't find any details(like road speed, current speed, distance from start, average speed etc.) of update without showing route on map.
1
vote
0answers
48 views

NSWindow Leak in Minimal Example (ARC turned on)

I'm trying to figure out why an NSWindow instance is never getting freed in a project I'm working on. I've managed to get the minimal repro case down to the following single file project that you ...
0
votes
0answers
22 views

Create JWE String Using RSA & AES Encryption in Swift/Objective-C [on hold]

I need to create a JWE String with a Public Key. I have to follow a Objective-C Code. Following is some code to create a JWE String. Usual HMAC generation will be with Key and value only. But in ...
-2
votes
1answer
28 views

cocoa/objective-c: how to get file time stamp in FILETIME structure [on hold]

I am trying to get File date+time stamp in Win32 FileTime structure in cocoa/objective-c. stat function helped to obtain the file UTC date+time. How can I obtain file localtime from the UTC and ...
-1
votes
1answer
45 views

Unpack hex-encoded NSData

on peripheral:didReceiveWriteRequest a CBATTRequest returns hex-encoded NSData via request.value. Hex representation: <79ca82c1 bcad530e 016a1435 127993ee 01ef7579>. Which also represents ...
2
votes
2answers
74 views

Access delegate protocol from Swift framework into Objective C

I've created the Swift framework and integrated into ObjC project. Now, I want to pass/access delegate handler in ObjC. Swift Framework contains UIViewController with close and submit button. ...
0
votes
0answers
20 views

ITMS-90011: This bundle is invalid - The image file must be in the RGB colorspace

When I am submitting Application through Xcode Application validation successful but when submit to Appstore Then This error Occur. ITMS-90011: This bundle is invalid - The image file must be in the ...
0
votes
0answers
29 views

iOS 13 Animating View Not Changing Frame

I have an app which is compiled in Xcode 10 on iOS 13 simulator. In one view there is a "tray" view which shows from the bottom when tapped, in iOS 12 it works perfectly, in iOS 13, the tap is calling ...
-3
votes
0answers
38 views

Unable to compare two strings in Objective C [on hold]

I am trying to compare elements from a json object that I created in my xcode project so one way that I have tried is by casting the data to a string using this code: NSLog([jsonData isKindOfClass:[...
-1
votes
0answers
42 views

Why looping through NSArray to check if it contains a string always return false?

I'm looping through an NSMutableArray from a file, however, the value always return as false even though it literally contains in the array. NSDictionary *outDict = [NSDictionary alloc]; NSDictionary ...
-5
votes
0answers
57 views

Crash with Iphone X [on hold]

I'm settiun up my app, and in the device Iphone XR crashes when browsing in different arrays How could it be the solution for this problem? I couldn't find any clue about the problem This is the ...
1
vote
0answers
37 views

Apple Pay not working after update Xcode to version 10.4

Apple Pay is working fine in simulator but after upgrading Xcode to 10.4, it stopped working. The Apple Pay popup appears. After click on pay with passcode, it hides without authenticating the ...
1
vote
1answer
59 views

How to turn an asynchronous method into a synchronous method [on hold]

I'm calling one method from another method.The method exits in the middile. After completing some tasks, it will run the remaining method. -(void)stateMethod{ [self.pickerView selectRow:0 ...
-3
votes
0answers
17 views

Why abort happen when one thread create new table and another thread insert data to the old stable table [on hold]

When I use one thread to continue creating new tables, I also use another thread to insert data in the old table. But unfortunately, it says that statement aborts, database scheme has changed I ...
-5
votes
0answers
26 views

Can we create dynamically this type of NSMutableArray [on hold]

Want to create a dynamically image url NSArray like this _datasource = [@[[NSURL URLWithString:@"https://www.mindmup.com/assets/progress/add-status.png"], [NSURL URLWithString:@"...
-1
votes
1answer
40 views

Integrate Swift library in Objective c “Property not found on object of type” in ios

I am trying to make Mobile Number Registration screen which contains All country flags, Name, And Country detail codes so I am using FlagPhoneNumber which is swift and also supports objective c. But ...
0
votes
0answers
26 views

-[UICachedDeviceWhiteColor objectAtIndexedSubscript:]: error/crash when populating TableView

My app crashes when I try to populate a tableView.. I receive the error "-[UICachedDeviceWhiteColor objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x281fa2790". I've created ...
1
vote
1answer
30 views

MTLBuffer with MTLStorageModePrivate mode

I'm relatively new to the Metal, and I have a pretty straight-forward question. I simply can not init MTLBuffer with MTLStorageModePrivate option: id<MTLBuffer> privateBuff = [device ...
0
votes
0answers
44 views

How to decrypt a very long string of AES 256 (CBC) encryption in Flutter?

I want to decrypt a very long base64 string of an encrypted JSON file, in which I'm provided with key and iv. And I'm not using the default PKCS7 padding instead I'm keeping the padding null in the ...
0
votes
1answer
28 views

Xcode11 - controls like UIButton height is 48, in AppDelegate only in XR/XSMAX device

In iOS13 alone, for the iPhone XR/XS/XSMax or in the simulator, in the delegate method didFinishLaunchingWithOptions I created an arbitrary UI controls, such as a UIButton, UILabel. With or without ...
0
votes
3answers
38 views

WKWebView how to find the request in the WKNavigationDelegate methods

I'm trying to migrate from a UIWebView to WKWebView. shouldStartLoadWithRequest delegate method I could find the request as below: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(...
-4
votes
0answers
32 views

How do I get iOS13 Memoji Stickers content? [on hold]

I want to get Memoji in my APP, like sending messages as image content, using UITextView I can get with NSAttributeString attachment, but using UITextField to get input NSAttributeString is empty, how ...
0
votes
0answers
19 views

Updating NowPlayingInfo in iOS Control Center with React-Native has no effect

We're trying to extend the functionality of react-native-video with iOS and Android native controls, utilizing the android tray and iOS control center to handle audio playback controls when the app is ...
-3
votes
0answers
32 views

What compiler iOS(for Objective-c and Swift) and Android(Java and Kotlin) use? [on hold]

Could you please help me to understand what compiler iOS(for Objective-c and Swift) and Android(Java and Kotlin) use?
0
votes
0answers
19 views

Saving CGContextRef for future method invocations

I'm working on a React Native project that defers further writing operations to the context. When saving the PDF Context and deferring a drawText operation to a separate invocation it results in a ...
1
vote
1answer
24 views

How to ignore a custom warning in clang?

I can ignore predefined Clang warnings as follows: #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" [target performSelector:selector]; #pragma ...
-2
votes
0answers
26 views

SQLITE error cannot open file at line 42270 of [95fbac39ba] - Undefined error: 0 [on hold]

I have set up the database and it is working fine on rows more than 1000 but I have 9000 rows to insert and I am getting error os_unix.c:42270: (0) open(/var/mobile/Containers/Data/Application/...
0
votes
0answers
18 views

Is the SecKeyRawSign/SecKeyRawVerify API implementation modified on macos10.15beta?

First we may need to determine if SecKeyRawSign/SecKeyRawVerify can be used on macos, otherwise the discussion below will have no meaning. The API document is classified as Legacy iOS Key Operations, ...
0
votes
1answer
49 views

Unable to remove notification when app is on background

Hi I am trying to remove a notification from the notification center when my app is on the background and a silent push arrives. It works fine if the app is in Foreground or connected to debugger. ...
0
votes
2answers
36 views

Objective-c NSXMLParser with Coredata takes too long to parse and store data

I'm not a experience xcode/objective-c programmer so I'm sorry if you might not understand somethings I might say, or somethings I might say wrong. So everything started with apple rejecting our app ...
-1
votes
0answers
34 views

How to validate liberty lite in cydia or electra using objective c ios?

Security issue: Able to run application in jailbroken devices.Hacking team able to hide the jailbreak check using liberty lite in cydia ,Below is my code for validating jailbreak if ([[NSFileManager ...
0
votes
0answers
21 views

How to solve Error: Failed to fill complex buffer in float converter ('insz') in EZAudio for iOS 13 [on hold]

-I am using EZAudio 1.1.5 for Recording and Playing audio. But while recording started application crashes with below error. https://github.com/syedhali/EZAudio/tree/master/EZAudioExamples/iOS/...