178 questions
3 votes
1 answer
165 views
Objective-C ISA pointer on disk vs when object being instantiated
The Objective-C runtime ISA pointer is defined as such: union isa_t { isa_t() { } isa_t(uintptr_t value) : bits(value) { } uintptr_t bits; private: // Accessing the class requires ...
0 votes
1 answer
277 views
Round Double value in objective c
How to round double value in objective c if the value is 1.66 it show value to 1.55 there is missing a point value which makes a difference if the calculations are higher ? self.priceLabel.text = [...
1 vote
1 answer
713 views
Print PDF with PDFKit.(Objective C)
I am developing an app that requires previewing and printing of the document. I am able to preview it but not able to print it. PS: I searched on the web and found that there is a method printwithinfo,...
0 votes
0 answers
60 views
Unable to Zip ios (objective c )SQLite Database file After Encrypting With SQLCipher
I have to zipped an encrypted file by using many zipped pod file like ZipArchive ,SSZipArchive etc.The simple sqlite file has been zipped by using ZipArchive but the file that is encrypted using ...
0 votes
2 answers
479 views
Correct way to pass NSError from URLSession
I have Network layer class, which has method with URL request. Seems like this: - (void)networkRequestWithError:(NSError *__strong *)responseError andCompletion:(void (^)(NSData*))...
6 votes
3 answers
705 views
How can I create object and use it in Objective-C?
I am using Buildbox for my game. I implemented custom rewarded ads. The problem is that game music continues when rewarded video is open. I want to mute and unmute after video is watched. I know Java ...
0 votes
1 answer
54 views
how to send the values in body when I call the asynchronous post request
I am trying to do a task which I am completely not aware of, that is video uploading to server in objective c. I am a beginner and I was using swift, but now my requirement is in objective c. Here I ...
0 votes
0 answers
432 views
Run a background timer in native iOS Module with Objective C - React Native
My app requires to run a timer in the background continuously when an app is in the background and it should stop when app gets into the foreground. The app is built with React Native and it doesn't ...
2 votes
0 answers
122 views
Protobuf missing 'list' suffix in Objective-C generated code
I'm using protobuf 2.6.1 with this plugin which I compiled myself. In the project I'm working with Protobuf models are already present. I tried to regenerate the files using the following command: ...
1 vote
1 answer
522 views
Objective C: Two implicit parameters passed to every method called by an object
What are the two implicit parameters passed to every method by an object in Objective-c? Is it _cmd and id?
-2 votes
2 answers
662 views
How to put a C primitive type in an NSArray? [duplicate]
I am trying create an NSArray which holds the datatype of serialized files i will be loading from disk. It can say double, int, or some custom type, and then I will need to load those files and cast ...
0 votes
2 answers
3k views
Add message to Remote Push Notification in Objective C (iOS)
How to fetch and display the message in push notification from dynamic notification service push: { aps = { alert = "My First Notification"; sound = default; Msg = { ...
0 votes
3 answers
426 views
How to send JSON with dictionary and array in iOS(Objective c )?
I am trying to send a JSON to websocket. the required format is coming up with commas whereas when i add item to dictionary then its creating a semi-colon. Required Format : {"key":"...
1 vote
0 answers
63 views
C array of ObjC objects as a Function argument
Whenever I am passing an argument of Objective C type A to my function then everything is alright: - (void) f:(id<A>)argument However, when it's an array of the same object type, Xcode requires ...
0 votes
1 answer
124 views
Does @interface with properties only require @implementation?
I would like to define a C struct-like in my Objective-C header file which includes _ivars only, however, since this a header file only there would be no corresponding @implementation. Is that even ...