Post

Replies

Boosts

Views

Activity

Reply to How to load data into your app's sqlite db?
You have data in CoreData. Why do you need to transfer to SQLite ? To use by other apps ? If it is to use by the app itself, why do you need a different store than CoreData ? Or why not manage data directly in SQLite ? Have a look here, that may help: h t t p s : / / w w w.raywenderlich.com/6620276-sqlite-with-swift-tutorial-getting-started
Topic: App & System Services SubTopic: iCloud Tags:
Oct ’21
Reply to UIButton click not responding in iOS 15
in some phones with iOS 15 update(15.0.1, 15.0.2, 15.1), button click is not responding at all. In which versions of iOS did you get it working ? When you post code, please use the code formatter tool. var signUpButton : UIButton = { let signInButton = UIButton() signInButton.setTitle(LocalizationManager.shared.localString(for: LocalizableStrings.signUpButton), for: .normal) signInButton.setTitleColor(.white, for: .normal) signInButton.setTitleColor(Colors.initoDark.withAlphaComponent(0.2), for: .highlighted) signInButton.backgroundColor = Colors.initoGreen signInButton.titleLabel?.font = UIFont.montserratSemiBold(15) signInButton.layer.cornerRadius = 26 signInButton.layer.borderWidth = 2 signInButton.layer.borderColor = Colors.initoGreen.cgColor signInButton.addTarget(self, action: #selector(handleSignupButtonTapped), for: .touchUpInside) return signInButton }() Do you see button on screen ? I understand yes if you can tap it. Could you show the selector func handleSignupButtonTapped ? Please also show what LocalizableStrings and LocalizationManager are. Is LocalizationManager the class in which signUpButton is declared ? If so that would mean that signUpButton calls itself (LocalizableStrings.signUpButton) during its init ? So please, provide more context.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to Which platform is the easiest to get started with in app development
I currently can’t afford to enroll in the apple developer program You can develop with a free developer account. You will not be allowed to publish on the AppStore, but that's visibly not a problem for you. You will have to reload app on device every week, but that's not a major issue either. And you will have access to all development resources, simulators… A great way to start. Good luck.
Oct ’21
Reply to Cannot Download Xcode 13.2 beta
Yes, I get the same error. Error as well for release notes. The page you’re looking for can’t be found. Looks like they have not yet loaded the pages, just put the links. https://developer.apple.com/documentation/xcode-release-notes/ does not list release notes for 13.2. Or we are too many to try to download.😉 Let's be patient a few more minutes.
Oct ’21
Reply to UITableView reload not working
User is blocked in alert action So that's very likely an async issue. How do you transition to MemberListVC ? By dismissing ? Where is it done ? What you should do is put this transition trigger in the handler of the Yes button         alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: { (action: UIAlertAction) in To be sure the transition is only triggered after user was blocked.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to How to load data into your app's sqlite db?
You have data in CoreData. Why do you need to transfer to SQLite ? To use by other apps ? If it is to use by the app itself, why do you need a different store than CoreData ? Or why not manage data directly in SQLite ? Have a look here, that may help: h t t p s : / / w w w.raywenderlich.com/6620276-sqlite-with-swift-tutorial-getting-started
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to I have been hacked :(
Nehelper (Network Extension Helper) is a known source of vulnerability. But I fear you have to wait for a system fix to correct it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to UIActivityViewController becomes almost transparent on iOS 15
Thanks for feedback. A good practice is to post also the answer where you post the question (this forum), that's easier for everyone. Why do you declare open in override open func viewDidLoad() { super.viewDidLoad(); a_var += 1; } and not simply ? override func viewDidLoad() How is a_var used in code ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to UIButton click not responding in iOS 15
in some phones with iOS 15 update(15.0.1, 15.0.2, 15.1), button click is not responding at all. In which versions of iOS did you get it working ? When you post code, please use the code formatter tool. var signUpButton : UIButton = { let signInButton = UIButton() signInButton.setTitle(LocalizationManager.shared.localString(for: LocalizableStrings.signUpButton), for: .normal) signInButton.setTitleColor(.white, for: .normal) signInButton.setTitleColor(Colors.initoDark.withAlphaComponent(0.2), for: .highlighted) signInButton.backgroundColor = Colors.initoGreen signInButton.titleLabel?.font = UIFont.montserratSemiBold(15) signInButton.layer.cornerRadius = 26 signInButton.layer.borderWidth = 2 signInButton.layer.borderColor = Colors.initoGreen.cgColor signInButton.addTarget(self, action: #selector(handleSignupButtonTapped), for: .touchUpInside) return signInButton }() Do you see button on screen ? I understand yes if you can tap it. Could you show the selector func handleSignupButtonTapped ? Please also show what LocalizableStrings and LocalizationManager are. Is LocalizationManager the class in which signUpButton is declared ? If so that would mean that signUpButton calls itself (LocalizableStrings.signUpButton) during its init ? So please, provide more context.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Random crash in UIPageViewController when swiping to the last page in the list of view controllers
What is this screenshot ? It is 3.3.2 beta of what ? It would be really helpful to see the code where the crash occurs.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Which platform is the easiest to get started with in app development
I currently can’t afford to enroll in the apple developer program You can develop with a free developer account. You will not be allowed to publish on the AppStore, but that's visibly not a problem for you. You will have to reload app on device every week, but that's not a major issue either. And you will have access to all development resources, simulators… A great way to start. Good luck.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode 13.1 iOS 15.0 simulator missing location privacy settings
That's effectively missing in simulators. Probably a bug, you should file a bug report. See others reporting: https://stackoverflow.com/questions/69273539/xcode-13-is-missing-settings-for-location-services-under-ios15
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot Download Xcode 13.2 beta
Yes, I get the same error. Error as well for release notes. The page you’re looking for can’t be found. Looks like they have not yet loaded the pages, just put the links. https://developer.apple.com/documentation/xcode-release-notes/ does not list release notes for 13.2. Or we are too many to try to download.😉 Let's be patient a few more minutes.
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13.1 Syntax Highlighting errors
That's apparently an Xcode 13 bug. I compared between Xcode 13.1 and 12.4. We see @Environment in purple in 12.4 and plain black in 13.1 (but the managedObjectContext is purple) If we type @Environement alone, it gets coloured in purple in Xcode 13 as well.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot Download Xcode 13.2 beta
That's it, it's working. Release notes as well.
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to open URLs with Umlauts
You should percent encode the part of the url. https://developer.apple.com/documentation/foundation/nsstring/1411946-addingpercentencoding
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13.1 Syntax Highlighting errors
Same behaviour in Xcode 13.2 beta.
Replies
Boosts
Views
Activity
Oct ’21
Reply to UITableView reload not working
User is blocked in alert action So that's very likely an async issue. How do you transition to MemberListVC ? By dismissing ? Where is it done ? What you should do is put this transition trigger in the handler of the Yes button         alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: { (action: UIAlertAction) in To be sure the transition is only triggered after user was blocked.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Resize image with autolayout
Did you set the UIImageView content Mode ? You should try Aspect Fit or Aspect Fill.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Quick certificate question
Normally you should not have anything to do. Notably if you have already a more recent certificate.
Replies
Boosts
Views
Activity
Oct ’21