Post

Replies

Boosts

Views

Activity

Reply to UIImage rotate according to device orientation
Then you need to detect device has rotated and rotate your image programmatically. Do it in: override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { // 19.5.2018 super.viewWillTransition(to: size, with: coordinator) // Rotate the UIImage itself here } But what will happen to the buttons ? They will not rotate. So the 3 goals may be conflicting I've got a few outlets for various buttons enabling only Portrait orientation rotate the UIImage according to the device orientation
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Button on header of colelctionview not visible
It is not visible because the header is not drawn. You need to create a few elements: You have declared a header section in the collectionView Attributes Inspector by enabling Section Header in Accessories: create a class for the headerView (new file); I named it Item1HeaderView but you can choose something else of course: import UIKit class Item1HeaderView: UICollectionReusableView { @IBOutlet weak var titleLabel: UILabel! @IBAction func headerButtonAction(_ sender: UIButton) { print("button was hit") } } That's Swift but is is immediate to write this in objC. set the header view to the right class (Item1HeaderView) in its Identity Inspector set the proper identifier in its Attributes Inspector: Create button and label inside ; Connect button and Label to their IBAction and IBOutlet in Item1HeaderView class. In the class where the CollectionView is, add this delegate func: func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { switch kind { case UICollectionView.elementKindSectionHeader: let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "\(Item1HeaderView.self)", for: indexPath) // Or simply withReuseIdentifier: "Item1HeaderView" headerView.backgroundColor = .yellow guard let typedHeaderView = headerView as? Item1HeaderView else { return headerView } typedHeaderView.titleLabel.text = "Hello" return typedHeaderView default: print("No header") } return UICollectionReusableView() } That should now work. See full details in this tutorial: h t t p s : / / w w w.raywenderlich.com/21959913-uicollectionview-tutorial-headers-selection-and-reordering
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to Uygulama nasıl yapılır
Sorunuz yeterince kesin değil. Forum, geliştiricinin bir sorunu olduğunda teknik soruları yanıtlayarak çalışır. Geliştirmeye başladınız mı? Gerçekten yeni başlıyorsanız, Apple Books'tan öğrenerek başlamalısınız: Herkes kod yazabilir - Swift ile uygulama geliştirme. Çok didaktiktirler. İyi şanlar. Your question is not enough precise. Forum works by answering technical questions when developer has a problem. Have you started development ? If you are a real beginner, you should start by learning from Apple Books : Everyone can code - App development with Swift. They are very didactic. Good luck.
Oct ’21
Reply to IOS 13 & iPHONE 6 .. Years without solution from Apple
I regret to inform… What a scoop ! 😉 Note that the forum is not a communication channel to Apple, but only to other developers. All devices from 6s can. 6 are effectively limited to iOS 12. But the "blame" is also on app editors who decided to stop supporting iOS 12, which they could do. It is some additional effort to test some API availability, but development tools in Xcode make it easy. Doing so, they would allow 6, 6 Plus and 5S to run new versions of their app. We do it so far for all the apps we publish on the AppStore. May be your message will reach developers and convince them to run their newer versions on iOS12 or below. Let's dream. Have a good day.
Oct ’21
Reply to join the developer program
You will find a lot of information here. https://developer.apple.com/support/compare-memberships/ In a word, yes you can access to development tools for free. But you need to join (and pay) to distribute apps on the appstore. There are some exemptions, listed in the above link.
Replies
Boosts
Views
Activity
Oct ’21
Reply to UIImage rotate according to device orientation
Then you need to detect device has rotated and rotate your image programmatically. Do it in: override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { // 19.5.2018 super.viewWillTransition(to: size, with: coordinator) // Rotate the UIImage itself here } But what will happen to the buttons ? They will not rotate. So the 3 goals may be conflicting I've got a few outlets for various buttons enabling only Portrait orientation rotate the UIImage according to the device orientation
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Annoying Quote Superimposes On My Screen - macOS Monterey Version 12.0.1
PS I've been trying to attach screen shots It does work. Just click on the icon below and select "Add image"
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Button on header of colelctionview not visible
It is not visible because the header is not drawn. You need to create a few elements: You have declared a header section in the collectionView Attributes Inspector by enabling Section Header in Accessories: create a class for the headerView (new file); I named it Item1HeaderView but you can choose something else of course: import UIKit class Item1HeaderView: UICollectionReusableView { @IBOutlet weak var titleLabel: UILabel! @IBAction func headerButtonAction(_ sender: UIButton) { print("button was hit") } } That's Swift but is is immediate to write this in objC. set the header view to the right class (Item1HeaderView) in its Identity Inspector set the proper identifier in its Attributes Inspector: Create button and label inside ; Connect button and Label to their IBAction and IBOutlet in Item1HeaderView class. In the class where the CollectionView is, add this delegate func: func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { switch kind { case UICollectionView.elementKindSectionHeader: let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "\(Item1HeaderView.self)", for: indexPath) // Or simply withReuseIdentifier: "Item1HeaderView" headerView.backgroundColor = .yellow guard let typedHeaderView = headerView as? Item1HeaderView else { return headerView } typedHeaderView.titleLabel.text = "Hello" return typedHeaderView default: print("No header") } return UICollectionReusableView() } That should now work. See full details in this tutorial: h t t p s : / / w w w.raywenderlich.com/21959913-uicollectionview-tutorial-headers-selection-and-reordering
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to ios infpPlist.strings not work
How did you test ? In simulator ? Did you change the device language in simulator ? This SO thread could help: https://stackoverflow.com/questions/25736700/how-to-localise-a-string-inside-the-ios-info-plist-file
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Uygulama nasıl yapılır
Sorunuz yeterince kesin değil. Forum, geliştiricinin bir sorunu olduğunda teknik soruları yanıtlayarak çalışır. Geliştirmeye başladınız mı? Gerçekten yeni başlıyorsanız, Apple Books'tan öğrenerek başlamalısınız: Herkes kod yazabilir - Swift ile uygulama geliştirme. Çok didaktiktirler. İyi şanlar. Your question is not enough precise. Forum works by answering technical questions when developer has a problem. Have you started development ? If you are a real beginner, you should start by learning from Apple Books : Everyone can code - App development with Swift. They are very didactic. Good luck.
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI NavigationView pops back when updating observableObject
Interesting. There was something a bit similar where style attribute changed the behaviour of stack: https://developer.apple.com/forums/thread/692911
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to App cannot by sound in Appstore search by name
You cannot delete a post. You can only edit it (remove most of content) during the first hour. What you can do is close the question by marking a correct answer !
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to App cannot by found in Appstore search by its name
I searched on the appstore: when typyping GraphMath, only GraphMath2 shows in list. but if you hit return, a lot of other show However I could not find yours. Even by typing twice the name, it does not show. You should file a bug report. I had a similar problem and it finally solved by itself after nearly 3 months.
Replies
Boosts
Views
Activity
Oct ’21
Reply to xcode 13 seems to have broken tags
Could you explain in detail how you did in Xcode 12 (I cannot find how to reach this Go to definition. With an example of url. In any case, you can file a bug report.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Annoying Quote Superimposes On My Screen - macOS Monterey Version 12.0.1
file and image options through that button do not work Is the image in png format ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to IOS 13 & iPHONE 6 .. Years without solution from Apple
I regret to inform… What a scoop ! 😉 Note that the forum is not a communication channel to Apple, but only to other developers. All devices from 6s can. 6 are effectively limited to iOS 12. But the "blame" is also on app editors who decided to stop supporting iOS 12, which they could do. It is some additional effort to test some API availability, but development tools in Xcode make it easy. Doing so, they would allow 6, 6 Plus and 5S to run new versions of their app. We do it so far for all the apps we publish on the AppStore. May be your message will reach developers and convince them to run their newer versions on iOS12 or below. Let's dream. Have a good day.
Replies
Boosts
Views
Activity
Oct ’21
Reply to UITableView reload not working
var match = [Match]()   var lastDocument: DocumentSnapshot? = nil   let userDefaults = UserDefaults.standard Thanks. But that does not show how match array is loaded or updated and where.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Redirect to settings app from within an app.
redirects to app-settings and we can press back to go to general settings. Is it possible to go to settings page directly? AFAIK, it is not possible to go directly.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to file a complaint to app store about an App?
I would first contact Apple Support (link Contact Us at the bottom of this page). You could also write a letter (snail mail) to Apple legal department to inform them of the problem.
Replies
Boosts
Views
Activity
Oct ’21