Posts

Post not yet marked as solved
1 Replies
949 Views
I am using the following code to set the light colour for StatusBarStyle: But this code has suddenly stopped working in iOS 13 and iPadOS 13extension UINavigationController { override open var preferredStatusBarStyle: UIStatusBarStyle { get { return .lightContent } } }I have implemented UINavigationBarController with Large Titles for iOS 13 and iPadOS 13. I am using Xcode 11.4.1
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.3k Views
I have created a macOS catalyst App from iPadOS in Xcode.But there is no way to enter or edit a custom bundle identifier for macOS Catalyst app in Xcode.How to do that?
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.7k Views
I am using following code to have a minimum size for my app, It looks something like this:#if targetEnvironment(macCatalyst) func addWindowSizeHandlerForMacOS() { UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.forEach { windowScene in print("addWindowSizeHandlerForMacOS()") windowScene.sizeRestrictions?.minimumSize = CGSize(width: 800, height: 800) // windowScene.sizeRestrictions?.maximumSize = CGSize(width: 801, height: 1101) } } #endifI want to have same minimum size as the default size for every time my mac catalyst apps opens.Every instance my app relaunch it should open in its minimum size width and height i.e. 800 by 800.
Posted Last updated
.
Post not yet marked as solved
8 Replies
840 Views
I have implemented UICollectionView for iOS / iPadOS and now macOSBut how efficiently I can code collection view for various mac screen/display sizes?Is there any definite threshold that I can code about? Because there are no compact or regular screen sizes...Do help me with this...
Posted Last updated
.
Post marked as solved
4 Replies
1.5k Views
I am developing an app for iPad for iPadOS 13.There are two UICollectionViewController one navigates from one cell to another UICollectionViewController. I am using the following code:I have declared keyWindow at UICollectionView Controller as:let keyWindow = UIApplication.shared.connectedScenes .filter({$0.activationState == .foregroundActive}) .map({$0 as? UIWindowScene}) .compactMap({$0}) .first?.windows .filter({$0.isKeyWindow}).firstBut on first UICollectionViewController 'keyWindow?.bounds.size' gets printed as nil but on second UICollectionViewController same iPad Simulator 'keyWindow?.bounds.size' it gets printed as 'Optional((768.0, 1024.0))'. I am using the exact same code everywhere.func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { var sizeArea = CGSize() print("UIScreen.main.bounds.size \(UIScreen.main.bounds.size)") print(keyWindow?.bounds.size) if UIScreen.main.bounds.size == keyWindow?.bounds.size { print("UIScreen.main.bounds.size == keyWindow?.bounds.size") let spacing = self.view.frame.size.width - 25 let itemWidth = spacing / 4 sizeArea = CGSize(width: itemWidth, height: itemWidth) } else { print("else") let spacing = self.view.frame.size.width - 20 let itemWidth = spacing / 3 sizeArea = CGSize(width: itemWidth, height: itemWidth) } }What I am doing wrong here?
Posted Last updated
.
Post marked as solved
6 Replies
1.2k Views
Hi All,Can anybody help me out with how to implement UIPointerInteraction (Which available with iPadOS 13.4) for UICollectionView Cell?I have referred this link: developer.apple.com/documentation/uikit/pointer_interactionsI want to highlight or lift UICollectionViewCell when I mouse over it on iPad...Thanks Again...
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.7k Views
I am using the following code to find out if the iPad is landscape or portrait in the face up or face down orientation to layout UICollectionView Cell... But I am getting the error "'statusBarOrientation' was deprecated in Mac Catalyst 13.0: Use the interfaceOrientation property of the window scene instead."My Code looks something like this:if UIApplication.shared.statusBarOrientation.isPortrait { let spacing = self.view.frame.size.width - 15 let itemWidth = spacing / 2 sizeArea = CGSize(width: itemWidth, height: itemWidth) }
Posted Last updated
.
Post not yet marked as solved
0 Replies
444 Views
My iOS & iPadOS uses UITabBarViewCotroller to display three views.Now I have converted my app to support macOS Catalyst App.But when I run catalyst app on macOS I face one issue that when I start to scroll below UITabBar comes & floats in the middle of app window...How to fix this?
Posted Last updated
.
Post not yet marked as solved
10 Replies
5.7k Views
I have setup UICollection View Cell with two UI Label, first for heading & second for content.But I am trying to have multiline text inside UILabel for content. But nothing is working.I am using the following code at "cellForItemAt indexPath". but it fails to work or apply.cell.descriptionUILabel.numberOfLines = 0 cell.descriptionUILabel.textAlignment = .left cell.descriptionUILabel.sizeToFit() cell.descriptionUILabel.lineBreakMode = .byWordWrapping cell.descriptionUILabel.baselineAdjustment = .alignCenters cell.descriptionUILabel.contentMode = .topLeft
Posted Last updated
.
Post not yet marked as solved
0 Replies
340 Views
I have 4 mp3 files which I don't want to combine in single mp3 file in Garageband. As It will add addituional burden on app file size.But what I want to do is play second mp3 file after first file completes playing with two second delay between them.Is this possible in iOS App?Any help would be greatly appreciated.
Posted Last updated
.
Post marked as solved
2 Replies
3.4k Views
Hi Folks,I am building iOS app that stores data in Array of strings from other array of selected strings using append method.But when I quit app all stored data in array get lost. Can somebody let me know how to store data in User Defaults using synchronisation. Then how to retrive, append, set & remove data from same array of user defaults.I am using UICollectionView for the same.
Posted Last updated
.