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,582
questions
0
votes
1
answer
26
views
iOS Swift : How to detect that other apps are being use by the user or not?
Suppose I launched my app and kept it is in background by pressing home button and now user is started using their other apps (like WhatsApp, Instagram, Paytm etc any apps) .
My requirement is that I ...
0
votes
0
answers
11
views
Text background color for newlines in TextKit 2
When using NSTextLayoutManager.addRenderingAttribute(.backgroundColor, value: NSColor.red, for: range), the background color for a line is only drawn as far as the last visible character. There is ...
-1
votes
0
answers
28
views
ScrollView not showing anything
I was expecting for labels to show up in a Scroll view for a reminders thing but nothing showed. I had examples for scrollviews but the last didn't worked with lists. So please help.
For first view ...
0
votes
0
answers
14
views
How to build ios release bundle in flutter app?
I am fresher flutter developer I don't know about how to build ios release bundle in flutter.
Any one help me how to build ios release bundle. I read many articles but I can't understand how to build.
0
votes
0
answers
61
views
will my application be rejected if i use UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication
can i use below one ?
let app = UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication
for app store build instead of
let app = UIApplication.shared
in my application i ...
0
votes
0
answers
35
views
Check number of touches in hitTest - Swift
In my app I have two views, one on top of the other. One of them should receive pinch gestures and, when that gesture is active, also pan gestures. The other, the one below, has to receive pan ...
-1
votes
1
answer
23
views
CallDirectory app extension runs out of memory without beginning request
I am running into an issue where my CallDirectory app extension runs out of memory immediately when I toggle my application on in the call blocking & identification settings screen. I set ...
0
votes
1
answer
29
views
How do I properly design my own custom table cell?
I designed a special table cell, but when the application runs, its display is broken. How can I set this. (I'm new to iOS development)
Thank you :)
My cell design
enter image description here
...
0
votes
0
answers
74
views
Reorder multiple items in a UICollectionView
I am using the drag/drop APIs of UICollectionView to support rearranging.
I've implemented the UICollectionViewDragDelegate and UICollectionViewDropDelegate as so (the actual item provider has been ...
0
votes
0
answers
49
views
How can I transfer data between two files without segue?
UIView is available as a separate file. How can I pass data between two files without a segue?
I am trying to pass data without using segue. I am using UIView in main viewcontroller. This UIView has a ...
1
vote
0
answers
105
views
Deleting from the start of the UITextfield clears the whole textfield
When the cursor is placed at the start of a UITextfield, pressing delete once, clears the whole textfield. Why does this issue occur and how can I fix this?
Below is the code I'm using for the ...
0
votes
0
answers
8
views
Error Running terminal command in Mac App
I'm trying to run terminal command pluginkit -m in my mac app but it returns message match: unauthorized discovery flag (PKDiscoverAll).But if I run ls command it works fine.
Can someone please ...
0
votes
0
answers
47
views
How to get C char * string value in swift?
char* iperf_get_test_json_output_string ( struct iperf_test* ipt ); // .h file
I am using iperf SDK .c file in iOS project in swift. Above function return (char *) pointer reference. I am ...
0
votes
2
answers
553
views
TextView adds bottom padding/space when text is one line
Issue
I am experiencing a weird behaviour with a UITextView which is inside a UIStackView with a defined spacing of 0. The UITextView is used to display a message inside a chat bubble. When the ...
0
votes
1
answer
39
views
Cocoa Framework `Current Library Version` emits a 32-bit truncation warning if version is higher than 16-bit max
When setting the framework's DYLIB_CURRENT_VERSION larger than 65535 Xcode emits a warning:
warning build: Truncating -current_version to fit in 32-bit space used by old mach-o format
Why would Xcode ...
2
votes
2
answers
593
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
0
answers
16
views
.a file not generating with build from core-plot example project
I have been trying to run example projects from core-plot. It looks like my build is not generating a .a file (image 1 attached). I do not know how to generate this .a file. I have installed CocoaPods ...
0
votes
1
answer
53
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
vote
1
answer
148
views
Use new UINavigationBarAppearance() API to set navigationBar color on a single ViewController?
I need to setUp a NavigationBar color for a single ViewController. What Im currently doing is setting up the nav color on viewDidLoad() and resetting it to .clear (so it uses whatever color is set on ...
1
vote
0
answers
182
views
File association in iOS
I have an iOS swift app that uses a custom file type - .csk. It creates that custom file and can edit/view for its functioning. When the user taps the .csk file, I expect the app to launch and the url ...
-1
votes
2
answers
54
views
How can I add a tableViewCell within another TableViewCell?
I need to implement a cell inside of another cell, is it possible in any way? Or should I just find another way? thanks
Edit:
Sorry for the brief description, the problem here is that I've got a ...
0
votes
1
answer
25
views
Flip Horizontal Segue between view controllers but in opposite direction (compared to default)
I'm using Xcode 12, and I want to make the flip horizontal transition in the opposite direction. Right now, it goes from right to left, but I want to make it go from left to right. Any ideas?
4
votes
0
answers
375
views
React Native builds work in simulators but not on ios device?
I have my build working fine on ios simulators, but when I plug in my iphone and run react-native run-ios --device "Max’s Iphone 12 Mini", the build fails. Error Below from rn cli below.
The ...
0
votes
0
answers
211
views
Thumbnail for video in UNNotificationAttachment is all gray
This has been asked here 2 years ago. I am having the same problem and I cannot figure out if this is purely iOS bug or does my code contribute to the resulting grayscale image? My payload contains a ...
-1
votes
1
answer
651
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
90
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
46
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
46
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 ...
1
vote
1
answer
53
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
47
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
1
answer
115
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
337
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
95
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
101
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
66
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
216
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
95
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
1
answer
281
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-...
3
votes
2
answers
1k
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
32
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
219
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
395
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
646
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: ....
1
vote
0
answers
93
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
44
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 ...
1
vote
0
answers
206
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.
4
votes
1
answer
2k
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
62
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
1
answer
43
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&...