Questions tagged [cocoa-touch]
The Cocoa Touch Frameworks that drive iOS apps share many proven patterns found on the Mac, but were built with a special focus on touch-based interfaces and optimization.
34,639
questions
-1
votes
1
answer
56
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
23
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 ...
0
votes
1
answer
27
views
How to retrive deleted contact and call log from iPhone Programatically
Can any one help me to retrive deleted contact and deleted phone calls from iPhone
Programatically.
Thanks,
Swapnil
0
votes
0
answers
19
views
Secure CALayer not shown in screenshots and screen recordings?
I have read a blog post some times ago talking about a feature of CALayers in iOS that could be marked as “private” or “secure”, so to not show up in screenshots and screen recordings/sharing.
However ...
0
votes
1
answer
26
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 ...
1
vote
0
answers
35
views
What does this UICollectionView exception mean?
In my application using UICollectionViewDiffableDataSource and compositional layout, I saw this exception
Thread 1: "This solver does not handle estimated items so this method
does nothing. Are ...
0
votes
0
answers
31
views
iOS How to Auto proceed OTP after OTP tapped which is shown on keyboard
I have implemented iOS auto OTP functionality with code
if #available(iOS 12.0, *) {
textContentType = .oneTimeCode
} else {}
I'm receiving OTP in the text field on tap the keyboard and ...
0
votes
0
answers
31
views
How to override hitTest to select UITableView Rows?
How do I allow my tableView to be selectable by overriding hitTest?
I have a tableview that lives outside of bounds of its superview so I need to override hitTest of the view containing the superview. ...
1
vote
0
answers
43
views
Not able to pass the Data by using Future COMBINE iOS Swift
I'm using Alamofire for data downloading and passing the data by using Future Publisher and in another class I'm accessing that data and decoding the JsonData and again passing it by using another ...
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
0
answers
46
views
RTL is not working properly using Custom SOTabBar ( Library )
I am currently working on an iOS app that needs to support languages English and Arabic, i am using this libaray to switch from a language to the other. Everything working fine, But just got one ...
0
votes
1
answer
30
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
34
views
AutoLayout - equal heights based on taller view
This is conceptually similar to Autolayout height equal to MAX(multiple view heights) except that question is sizing a container view, but I am wanting both buttons to be sized to the height of the ...
2
votes
0
answers
101
views
WkWebView with adaptive width and height
I need to create a WkWebView with adaptive size.(The size will mostly be fixed i.e 300 * 250 and sometimes it could have a dynamic height. It depends on the type of response I get from server)
The ...
0
votes
1
answer
31
views
How to manage Dynamic UITableviewCell Height it is contained Dynamic UITableView Swift
I am trying to add dynamic UITableView inside UITableViewCell, but i am unable to manage height of cell. please assist me. Thanks.
0
votes
0
answers
49
views
Why are these Mapbox pods preventing my code from building?
My app was working fine for months then one day I ran it and when trying to navigate to a specific location using mapbox, I got a random error in regards to the vocal synthesizer and could not find a ...
0
votes
0
answers
18
views
Assign Provision Profile through terminal
I am implementing CD in iOS, in that process i came across an situation to assign value to Provisioning Profiles without selected the dropdown and assign via script. Please refer to below image for ...
1
vote
0
answers
43
views
Not able to launch Enterprise App after upgrading my device to iOS 15 [closed]
I have this enterprise application with objective C code, working fine with iOS 14, but after Xcode 13 build, it is working fine with the iOS 15 simulator, but the device. a black screen is popping up ...
-1
votes
1
answer
93
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-...
1
vote
1
answer
493
views
cocoa touch framework missing symbol called
I have a framework that depends on a couple of pods such as IQKeyboardManagerSwift, It used to work fine when I generate framework file and integrate it in a project that has the required pods ...
-1
votes
1
answer
20
views
Why can't my Cocoa Touch Class register UITableViewDataSource protocol methods to update storyboard's table view?
I wanted to try working with Cocoa Touch to create a table view but having issues. After I create the UITableViewController file and attach it to my storyboard table view's custom class, I expected to ...
0
votes
0
answers
75
views
RTSP link not support in iphone12 by VLCKit 3.3.17 pod
My RTSP url is suitable for all iPhone except iPhone 12 series with MobileVLCKit framework.
below iPhone12 it's works fine with MobileVLCKit libraries.
but in iPhone12 i found
"Unable to ...
0
votes
1
answer
239
views
How do you create an italic AND black (weight) UIFont object?
I want to create a UIFont that is both black in weight (heavier than bold) and italic, without hardcoding any font names or anything.
All my attempts have came up short. You can do it via UIFont....
1
vote
1
answer
114
views
When observing a notification that may be posted "on a thread other than the one used to registered the observer," how to ensure thread-safe UI work?
I observe when an AVPlayer finishes play in order to present a UIAlert at the end time.
NotificationCenter.default.addObserver(
self,
selector: #selector(presentAlert),
name: ....
0
votes
0
answers
34
views
UISplitViewController's master rootViewController view too wide
On Xcode's Interface Builder, if I add a UISplitViewController to my storyboard, the width of the view of the rootViewController for the splitViewController's master is larger than the area assigned ...
0
votes
1
answer
28
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 ...
0
votes
0
answers
93
views
Increase the section index titles in UITableView height equal to tableview height
How can we make the index title height nearly equal to tableview height. or custom height.
Please look the default behaviour of index tableview height.
1
vote
1
answer
695
views
What is the difference between UIKit and Cocoa Touch?
I am learning Swift and I've been struggling a lot trying to understand how Cocoa Touch and UIKit are different. Just looking at the descriptions of the tags gives me:
cocoa-touch - The Cocoa Touch ...
2
votes
0
answers
44
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
145
views
How to Hide Password while taking screenshot in iOS
My app have the password reveal and hide feature on login screen. I need to hide the password while taking screenshot in iOS device right before screenshot is captured but I don't have any event to ...
0
votes
1
answer
35
views
Is it possible to add headers to each UITableViewCell?
I'd like to add section header style headers, except for each individual cell. Each cell would have a date label floating above it, with a transparent background. These labels would be "attached&...
1
vote
1
answer
42
views
IS there any mechanism to deliver secrets to the iOS App in a secure manner
I want to send particular key value pairs (secrets) to the app dynamically.. So by doing some investigation it seems we have apple remote assets concept (didn't find any documentation though)..
Please ...
0
votes
0
answers
24
views
MoreNavigationController messes up row sizes on font size change
Using iPhone 6 with iOS 12.4 simulator
Have a UITabBarController with more than 5 tabs
Tap the "more" button to see the extra remaining tabs
One of the tabs has 12 or more characters in its ...
1
vote
1
answer
44
views
Perform action when tapping on My Location in MapKit
Is there a way to trigger code to execute when tapping on the "My Location" blue dot in MapKit?
I tried implementing func mapView(_ mapView: MKMapView, didDeselect view: MKAnnotationView) { ...
1
vote
0
answers
49
views
How to make UICollectionView animate insertions relatively to its center?
I'm using UICollectionView with NSDiffableDataSource and UICollectionViewFlowLayout, which looks like horizontal sequence of covers.
By default, the insert animation looks like all the cells right to ...
0
votes
0
answers
106
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
0
answers
49
views
How can I handle a touch as a consequence of a previous touch? (Swift, SpriteKit)
This is a chess game in Swift using SpriteKit.
What I would like to happen is for the touched piece to move to the square touched on the next touch. When I run, the piece does not move when I try this....
28
votes
4
answers
14k
views
Xcode error 'building for iOS Simulator, but linking in dylib built for iOS .. for architecture arm64' from Apple Silicon M1 Mac
I have an app which compiles and runs fine in older Macs with Intel processors in physical devices & iOS simulators.
The same app also compiles and runs fine from newer Apple Silicon Mac with M1 ...
0
votes
0
answers
39
views
Video recording - No audio right first time after permissions required
I've implemented video recording using AVFoundation and I encountered a really strange issue:
The first thing I do, in ViewDidAppear I check/request access for video & microphone. If I start ...
1
vote
1
answer
61
views
RTCClient : You have to be logged in in order to use Chat API
Calling below code to start video call using QuickBlox, But getting 'You have to be logged in in order to use Chat API' error even after calling login API.
//Authorise user/Create session
...
1
vote
1
answer
546
views
What is the difference between DispatchQueue schedule() vs DispatchQueue async() vs DispatchQueue concurrentPerform() for iOS Application
What are the differences between DispatchQueue schedule(), DispatchQueue async() and DispatchQueue concurrentPerform()?
Under what circumstances will it be more appropriate to use each?
I could not ...
2
votes
2
answers
882
views
How to call Swift from an Objective C project App Delegate?
This code is from a Swift project App delegate. It is used to help configure Stripe with a publishable key.
//Appdelegate.swift
func application(_ application: UIApplication, ...
4
votes
2
answers
461
views
How to setup accessibility containers so that gestures work properly?
I have a view controller with this layout (note that yellow and table views are siblings):
I want the yellow view to act as a container, so I'm doing this in viewDidLoad:
yellowView....
0
votes
1
answer
284
views
SwiftUI Grid Item Memory Leak
I'm trying to create a photo app in SwiftUI that display the photos from PHAsset on a device.
However when I keep scrolling the grid view, the memory would keep growing and eventually crash because of ...
0
votes
1
answer
137
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
1
answer
933
views
Swift: Cannot use instance member 'trialGame' within property initializer; property initializers run before 'self' is available
In my Swift ViewController, I have the code
class ViewController: UIViewController {
var camera: UIButton!
var gameBrowser: UICollectionView!
let gameBrowserReuseID = "...
0
votes
1
answer
40
views
UIDatePicker input field misaligns
I inherited an iOS project written in Swift 4.2, that uses a UIDatePicker as the input view of a text field:
let datePicker = UIDatePicker()
datePicker.maximumDate = Date()
datePicker.datePickerMode = ...
0
votes
2
answers
518
views
What does "@main" mean in Xcode 12?
Xcode 12 includes support for using @main in place of @UIApplicationMain or @NSApplicationMain in UIKit- or AppKit-based apps. source
Newly created Xcode 12 project now using @main to indicate the ...
1
vote
0
answers
102
views
Control (UIDatePicker) doesn't trigger change event when it starts out hidden
I'm new to iOS development, but I'm having an issue with one of the views that I'm working on. I have a UIDatePicker that can either be hidden or visible depending on the state of a UISwitch. It seems ...
4
votes
1
answer
372
views
NSAttributedString with baselineOffset can cause the last line to be cut off
I’ve got an attributed string with a set baseline offset which renders as I’d expect.
The issue is when I add any other style (color, strikethrough, link, etc) to only part of the string, the text ...