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.

Filter by
Sorted by
Tagged with
0votes
1answer
24views

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 ...
user avatar
1vote
0answers
32views

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 ...
user avatar
  • 50.2k
0votes
0answers
17views

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 ...
user avatar
0votes
0answers
26views

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. ...
user avatar
  • 1,742
1vote
0answers
29views

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 ...
user avatar
  • 11
0votes
0answers
26views

'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 ...
user avatar
0votes
0answers
33views

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 ...
user avatar
0votes
1answer
26views

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 ...
user avatar
  • 218
0votes
1answer
32views

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 ...
user avatar
  • 145
2votes
0answers
84views

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 ...
user avatar
  • 2,091
0votes
1answer
28views

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.
user avatar
0votes
0answers
38views

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 ...
user avatar
  • 1
0votes
0answers
17views

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 ...
user avatar
1vote
0answers
36views

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 ...
user avatar
-1votes
1answer
80views

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-...
user avatar
  • 14.1k
1vote
0answers
380views

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 ...
user avatar
-1votes
1answer
20views

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 ...
user avatar
0votes
0answers
60views

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 ...
user avatar
0votes
1answer
227views

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....
user avatar
1vote
1answer
92views

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: ....
user avatar
0votes
0answers
28views

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 ...
user avatar
0votes
1answer
26views

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 ...
user avatar
  • 5,801
0votes
0answers
80views

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.
user avatar
1vote
1answer
557views

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 ...
user avatar
2votes
0answers
39views

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 ...
user avatar
  • 35
0votes
0answers
129views

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 ...
user avatar
0votes
1answer
35views

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&...
user avatar
1vote
1answer
40views

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 ...
user avatar
  • 560
0votes
0answers
21views

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 ...
user avatar
0votes
0answers
27views

How can I add Cocoa Touch Template to Xcode?

I want to create a new File with File > New > Target > Cocoa Touch UI Testing Bundle, but the "Cocoa Touch UI Testing Bundle" is not displayed. Also i tried to Create new Xcode ...
user avatar
  • 590
0votes
0answers
49views

How do I make my app appear as a calling option within another iOS app?

I emailed myself a phone number and tapped and held it within the iOS mail app. My app shows as a calling option with a bunch of other non-native iOS apps. I tried the same thing in the iOS Outlook ...
user avatar
  • 10.1k
0votes
0answers
23views

Can a NavigationController that isn't the rootViewController be used to access and update the UIWindow class in Appdelegate.m?

When calling addMessageFromRemoteNotification the app crashes: //Appdelegate.m: these methods assist in showing a speech bubble with a text payload when a message is sent - (void)application:(...
user avatar
0votes
1answer
33views

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) { ...
user avatar
  • 61.2k
1vote
0answers
46views

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 ...
user avatar
  • 39
0votes
0answers
96views

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 ...
user avatar
1vote
0answers
48views

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....
user avatar
22votes
3answers
12kviews

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 ...
user avatar
  • 15.6k
0votes
0answers
34views

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 ...
user avatar
1vote
1answer
55views

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 ...
user avatar
1vote
1answer
453views

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 ...
user avatar
2votes
2answers
812views

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, ...
user avatar
4votes
2answers
397views

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....
user avatar
  • 10.5k
0votes
1answer
248views

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 ...
user avatar
0votes
1answer
110views

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 ...
user avatar
  • 39
0votes
1answer
884views

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 = "...
user avatar
  • 315
0votes
1answer
40views

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 = ...
user avatar
  • 1
0votes
2answers
453views

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 ...
user avatar
  • 18.2k
1vote
0answers
91views

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 ...
user avatar
  • 616
4votes
1answer
311views

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 ...
user avatar
0votes
0answers
51views

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 ...
user avatar

15 30 50 per page
1
2 3 4 5
694