All Questions
Tagged with objective-c cocoa-touch
17,255
questions
4
votes
2
answers
1k
views
Enable personal hotspot programatically in iOS using Swift or Objective-C
I am looking for a way to enable personal Hotspot programatically in iOS using Swift or Objective-C but did not see any API or way to achieve that.
My question is that even possible to do that?
Does ...
0
votes
1
answer
78
views
iOS Notification Behavior when setting is OFF in device level
What is the expected behaviour of userNotificationCenter:willPresentNotification:withCompletionHandler:
when the notification setting for an app is turned OFF in device level? I always assumed no ...
-1
votes
1
answer
920
views
How to parse a url to get key and value
I am refering this answer to parse url but when parse this url
NSString *urlString = @"https://www.example.com/product-detail?journey_id=123456&iswa=1";
I am getting my 1st key is https:...
0
votes
1
answer
127
views
Keyboard avoidance worked for UITexField - Not now in iOS 14
On an existing project with many many subclassed UITextFields, UITextViews and other text-based input subclasses move a UIScroll (self.view) view up nicely for keyboard avoidance.
Since iOS 14 ...
1
vote
1
answer
89
views
Best way to notify framework clients of state changes on iOS
I'm developing a framework for iOS apps that allows interfacing with custom BLE devices made by my company. We're planning to distribute the framework binary with public headers to clients. I've ...
0
votes
0
answers
26
views
'unrecognized selector' for category method on SpriteKit class [duplicate]
There are dozens of questions about this on stackoverflow, but all conclude with the same answer that doesn't work in my case and doesn't apply to my situation... -all_load and/or -ObjC linker flags
I ...
0
votes
1
answer
163
views
How to display leftBarButtonItem look same as backBarButtonItem in Objective C iOS
I've a backBarButtonItem for few view controllers it is default showing with back arrow and text I wanted to create a leftBarButtonItem for some other view controller(which are presented instead of ...
0
votes
1
answer
442
views
How to change(Remove/Add new pod) specific pod with out changing other dependencies?
I know this question is duplicate, but latest answer is not available.
I have tried so many options to achieve this, but no use.
I want to update my Firebase SDK from my old project.
pod install --no-...
0
votes
1
answer
52
views
MKStoreKit Auto Renewing Subscription Expiry Date Always Returns Current Date
Using MKStoreKit for an auto-renewing subscription. Successful purchase in the sandbox. The issue is the purchase date and expiry date always log as the same, or 1hr behind the current date. With ...
2
votes
0
answers
67
views
UIMenuController doesn't show up
I'm trying to fix an issue for two days but I really don't know what to do. I tried several solutions but nothing helped.
This is the situation: I have a UIViewController and I've added a subclass of ...
0
votes
0
answers
334
views
attempt to insert nil object from objects[1]'
I would like to show ChatViewController via a tab bar controller. The current initial view for the app is a NavigationController that loads the ChatViewController. When the ChatViewController is ...
1
vote
1
answer
390
views
How to pass a parameter by a @selector function in Objective C?
- (IBAction)alertShow:(NSButton *)sender {
MHAlert* alert = [[MHAlert alloc]initWithMessageTitle:@"message" infoText:@"infoText" btnTitle:@"OK" target:self ...
0
votes
0
answers
94
views
Why do empty objects appear in OC array?
When I assign one array to another, I get an error, as shown in P1.
Then I checked the contents of _carIDArray and found an empty object in it. It was this object that caused the crash.P2
Why do empty ...
2
votes
1
answer
2k
views
Thread 1: "-[_UIDatePickerIOSCompactView setHighlightsToday:]: unrecognized selector sent to instance"
I'm getting crash reports from iOS 14, from using setHighlightsToday with the UIDatePicker.
Thread 1: "-[_UIDatePickerIOSCompactView setHighlightsToday:]: unrecognized selector sent to instance&...
0
votes
1
answer
83
views
Ios data auto delete
Does iOS automatically deletes document directory or library directory data when phone memory gets full?
Wanted to save application data so that it won't get deleted automatically in any case.