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.
286,770 questions
0
votes
0answers
13 views
how to detect libConfigurer64.dylib is loaded at runtime in mac app objective c
I am trying to find if someone tries to libConfigurer64.dylib runtime
so i have imported this in
#import <mach-o/dyld.h> Appdelegate then in didFinishLaunching
CODE SAMPLE
int imageCount = ...
-1
votes
0answers
29 views
view inside view bottom constraints not coming correctly
I have one main view, inside that i placed one more view and i set the top, right, bottom constraint to superview. And set the width. But when i run. My subview height( bottom ) is not showing fully....
1
vote
1answer
14 views
Using method_getReturnType to call specific types of instance member functions
I'm new to Objective-C so I don't have much idea about the language.
What I'm trying to do is go through all available instance methods of an object and call the ones that take no arguments, return ...
0
votes
1answer
30 views
How do I overwrite a constraint
I have a UIButton that's constrained to the parent view like this:
[myButton constrainToParentView:NSLayoutAttributeCenterX];
and later in my code, I want to change the constraint to this:
[...
-5
votes
0answers
28 views
How do I show my iPhone player app on TV using airplay?
I have built an app that has the ability to use AirPlay to stream content to Apple TV. I can see a black screen with seek progress bar on Apple TV, which I can control. Also I can play/pause. But how ...
0
votes
1answer
14 views
Printing with the system dialog when using PMPrintSession
Below is the code I we are using to print on mac. Is there an easy way to allow printing using the system dialog? It looks like at one time PMSessionBeginDocument & PMSessionBeginPage were a thing,...
0
votes
0answers
15 views
Launch app and pass data with NFC background read
Is there any good example/tutorial/docs for the iOS NFC background read?
I'm working on a app with NFC reading functions. I've already finished the NFC reading/NDEF message parsing and handling part, ...
0
votes
0answers
13 views
How do I determine the owner / creator of the GKTurnBasedMatch?
I need to somehow determine if the GKTurnBasedMatch instance was created by GKLocalPlayer or another one (in case when GKLocalPlayer joins already existing match). I know that I can save the player's ...
-1
votes
1answer
21 views
How to relaunch current program in macOS with execl(“/usr/bin/open”…)?
I can successfully launch an app with
execl("/usr/bin/open", "open", "/Applications/Foo.app", 0);
But this doesn't work when I'm calling it inside Foo.app
I want my app to relaunch itself when it ...
-1
votes
3answers
36 views
UIButton constraints Programatically
I have created "first button" using storyboard and set its constraints for it, now I want to create another button programatically and set it above the first button like this :
and I use this code ...
0
votes
0answers
5 views
All Possible HKWorkoutEventTypes and their metadata
My company has built an app that can currently import HKWorkouts from Apple Health specifically swimming workouts.
Looking to be a bit more specific with that import though by pulling different data ...
0
votes
0answers
19 views
Firebase Dynamic Link does not work after fresh installation (iOS)
I have application already pushed to App store and Google Play. On Android Dynamic Links are working as expecte. However, when I click on dynamic link from IOS Device, first I see preview page, then I ...
0
votes
0answers
13 views
Including subframeworks headers on parent framework
We are developing an IOS SDK as framework project, which consist of several sub frameworks.Some of these subframeworks are written with swift and some of them are written with objective-c.
Our ...
2
votes
2answers
59 views
How to correctly navigate with navigation's stack in Xamarin.ios?
I'm currently working on a project in Xamarin.iOS and I don't have any idea how the stack system works.
I have a menu where I choose the language of my app and I would like to refresh on the fly the ...
-1
votes
2answers
31 views
How to find the iOS SDK version that an app is using?
I need to find a way to see if an app is using a particular SDK, specifically I need to see if it is using SDK version 12. Is there a way to do this either programmatically or in Xcode? Checking the ...
0
votes
2answers
43 views
Is there a good way to check when a variable stop changing its value after continuously changing for a while?
I'm trying to check a variable declared as
@property (assign, nonatomic) NSTimeInterval rate; which is changing constantly as a time counter. In other words, the variable's value is changing ...
0
votes
2answers
32 views
How to add the view to whole screen
I have an 2 vc,with push from one screen to another screen.In my vc2 programmatically i am adding the nav bar title, bar button . But when i add the view some 10 points from top is reduced. not ...
0
votes
0answers
8 views
Can not load In-App preview (Google-Mobile-Ads-SDK)
I'm tring to add the abillity to preview native ads in our iOS app (being written in Obj-C).
I've added the debug menu to our iOS app following the instructions from https://developers.google.com/ad-...
0
votes
0answers
17 views
Porting OCTAVE Griddata function to iOS
I'm currently working on a project, where I need to include few of Octave functions (exactly Griddata). My question is, if it's possible to use my octave code as a c++ library, which I just can ...
0
votes
0answers
19 views
Sparkle Integration with security in mac app cocoa
I am integrating sparkle in my mac app for automatic updates of app. following this but i have problem with step 3 Segue for security concerns
EdDSA (ed25519) signatures
To prepare signing ...
0
votes
0answers
34 views
UIWebView content loads successfully but gives pop up
I am loading (1) HTML string (2) Web URL in UiWebView. For some content, I am getting alert: "There is some issue while processing your request" still it loads content.
The following delegate called:...
0
votes
0answers
33 views
Dynamic Height for Multiple UitableView in one view controller
I am looking for a logic to be implemented.
I have Four UITableView in One View controller. I want to set the height of every UITableView as per the rows present in the UITableViewCell. The cell ...
0
votes
1answer
23 views
changing up some code in 'DraggableViewBackground.m'
Github Source URL: https://github.com/cwRichardKim/RKSwipeCards
So, I need to change up some code in 'DraggableViewBackground.m'.
rather than an array of text as is on the stock source code, I need ...
0
votes
0answers
9 views
no count number after customize cluster marker
I'm new to Objective-c and I'm trying to get the count number of the item marker after customized the cluster marker icon. Can anyone give me some help please? Thanks.
Here is the code that I used ...
0
votes
1answer
32 views
Detecting VPN connection in macOS (sandboxed)
I am trying to detect whether a VPN connection is active in macOS from within a sandboxed application, but am having a hard time finding a common solution for various VPN services. Currently, I am ...
1
vote
1answer
29 views
What difference among boolean types in Objective-C?
I tried exchange the boolean types between them, and it worked. But the CFBooleanRef presented a warning.
After all, what's the difference between them?
boolean_t a = true;
bool b = a;
Boolean c = b;
...
0
votes
1answer
52 views
UITextView dynamic width according to text inside in UITableViewCell
I'm working to make a chat bubble like in iMessage. I have to use UITextView to get advantage of DataDetectors to detect urls, phone numbers and addresses automatically. My view hierarchy is like;
-...
-3
votes
0answers
37 views
Weird Black Stroke around an Icon [on hold]
I run an application to my test device which is an (iPhone 7) and my x-code10 emulator, but suddenly I noticed a black stroke around the launch icon, what does cause that issue and how can I remove it?...
0
votes
0answers
45 views
Memory issue with block, when it is transferred from swift to objective-c
maybe someone will have thoughts on solving an interesting problem. There is an obj-c method, which I rewrite to Swift:
https://pp.userapi.com/c846018/v846018818/1a0713/zsa8UZFcnfY.jpg
+ (...
0
votes
0answers
30 views
URL Requests with SSL Pinning in iOS App are failing for few websites
I have an iOS app which has SSL pinning feature for few particular requests. As SSL Pinning is not working due to some reason, I have downloaded SSL Certificates for 3 sites using Firefox browser (or ...
1
vote
1answer
11 views
iOS MapView add MKPointAnnotation which coordinate is (0, 0) not showing
I am trying to add annotations on MKMapView. The annotations can show up when the coordinates are not (0, 0), but when I set the annotation's coordinate as (0, 0), the annotation view can NOT show up.
...
0
votes
0answers
22 views
How to change URL Scheme programmatically by Launch Service
I developing an iOS app, in which I need to change URL Scheme in info.plist.
I searched and googled and found that its straight away not possible to edit plist.
Edit info.plist, but I found another ...
-1
votes
0answers
20 views
How to clip a CIImage to a polygon only using GPU?
Because of some performance Issue, now I need to clip an image to polygon with GPU, but UIImage and CGImage/CGContext use CPU only, and the CIImage can not be clipped by path(EX:BezierPath).
Any idea ...
0
votes
1answer
33 views
How to fix the memory leak while calling [[NSBundle mainBundle] appStoreReceiptURL] in objective c?
I Encountered a memory leak while checking with instruments at this specific line NSURL *constantURL = [[NSBundle mainBundle] appStoreReceiptURL];
this line is used in validate the Appstore receipt
...
-2
votes
0answers
16 views
Airbrush like in MS Paint
I am making one app like filling the colors in Drawing art and Airbrush functionality like in MSPaint. I am unable to find the solution in doing airbrush functionality
-1
votes
1answer
34 views
Xcode 10.0 Crash every time of header import
Xcode 10.0 with project in Objective-C. Each and every time Xcode crash at time of #import "" statement.
0
votes
1answer
34 views
Upload build to itunes error from xcode 10.1
I try to validate build / upload build to iTunes the error was occurred.
Note : I am using custom framework and developed in Objective-c language.
Review ipa content
This is screenshot of custom ...
-1
votes
0answers
35 views
Will Apple reject my app if I edit my info.plist runtime
I'm working on Azure AD, in which I need edit "URL types" in info.plist runtime (change ClientId which comes from our server) so my questions are?
By editing runtime in info.plist file will Apple ...
0
votes
0answers
15 views
Objective C Amazon and xctest framework not found . how to solve this
ld: warning: directory not found for option '-F/Users/rahulsaxena/Desktop/Hawaii revealed/Hawaii revealed/Reusable Controls/LHTBugReporterControl/ReusableControls/AWS'
ld: warning: directory not found ...
-3
votes
2answers
69 views
Getting callback when app is terminated (either by user or OS)
I want to execute a piece of code when my iOS application is terminated (applicationWillTerminate doesn't work all the times).
The thing I want to do is whenever the app is terminated, I would like ...
0
votes
0answers
52 views
How do I add multiple framework in a single Xcode project?
I have 3 different framework in a single project.
3 Targets
Framework 1
Framework 2
Framework 3
Now, I want to have one more target(4th one) which is the combination of all of above. Is there any ...
0
votes
0answers
27 views
App Stuck While Scrolling UICollectionView and then Minimize and then launch
Go To Collection View
Scroll down
Minimize app while scroll is in progress
Resume app
Tap Back button of CollectionView screen, app freezes and then crashes
0
votes
0answers
24 views
Core data Problem with Relationship in inheritance entities
I have one Abstract Entity: Attachment, which has 2 simple attributes(UUID and String)
Attachment {
id: UUID,
type: String
}
And two inheritance models: FileAttachment and MessageAttachment.
...
0
votes
3answers
42 views
ObjC how to pop back to RootViewController when TabBarItem is selected
I got the following flow
At Home Tab Select Evening called [self.parentViewController.tabBarController setSelectedIndex:2]; to Go to Class Tab
At Class Tab select any Class
Go to the next VC
...
2
votes
0answers
27 views
Text to speech - How to parse the SSML string in Objective C
I am getting a SSML text in the JSON and trying to find out a standard way to parse this SSML format i.e
"text" : [ "<speak>Screen title <break strength='weak '/> Sign In <break ...
0
votes
0answers
18 views
iOS Application BadgeCount is keeping count despite making badge count to zero. I am sending push notifications with OneSignal
I am sending a push notification so the badge count is 1, then on AppDelegate applicationDidBecomeActive I do [UIApplication sharedApplication].applicationIconBadgeNumber = -1;, so the badge hides, ...
0
votes
1answer
16 views
MMDrawerController where I need to add sidemen buttons?
I am junior iOS dev and trying to use MMDrawerController.
I have MainStoryboard with 4 views.
NavigationController (embed on CenterViewController controller)
CenterViewController
LeftViewController
...
0
votes
2answers
29 views
SWRevealViewcontroller UIbutton action first click not working, after that its working fine
I have done some demo project for the side menu.in that i have 3 vc. i am using right side menu to show the side menu view. Here, from vc1 to vc 2 push. And in vc2 i have one button to open right side ...
0
votes
1answer
25 views
How to use compute function in Metal API in iOS for Multiplication
I am new to Metal API in iOS. So my question is, how to use Metal compute function for Multiplication, for instance,
let say we are having two float[] arrays of length 2048, we want to multiplicate ...
0
votes
0answers
12 views
custom UIView in ObjC framework to work both in Objc & swift
I written an Objc static framework which has UIView class interface.
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SelectedView : UIView
@property (nonatomic, assign) CGRect ...