Post

Replies

Boosts

Views

Activity

Reply to projects
Kindly give me the projects. What do you mean ? Ideas for apps ? That's the most valuable part to have an original idea for an app. No one will give it I fear. To get such ideas, just look around, in various rooms of your home, or in the street, looking at the sky, in various situations of daily life, asking you: Where should I need some help ? manage food and diet ? fitness help ? your book shelves management… There are so many ideas for those who know how to observe. Good luck.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to Objective c with iOS15 tableView expandable
Please show the full crash report for the above code. I don't understand your code if (self.selectedIndex==-1)  { NSIndexPath *prev = [NSIndexPath indexPathForRow:self.selectedIndex inSection:0]; WIth selectedIndex==-1, what is value of previous (null ?) Add a log to test for prev.
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’21
Reply to How to get MacOS version Beta
What you describe is surprising. majorVersion should be an integer(10, 11, 12), not 10.16. var majorVersion: Int The major release number, such as 10 in version 10.9.3. var minorVersion: Int The minor release number, such as 9 in version 10.9.3. var patchVersion: Int The update release number, such as 3 in version 10.9.3. Could you show the code where you call for it ? MacOS 10 ended at 10.15. Further beta (11ß) were sometimes named 10.16. But this is surprising for 12ß. Is it a remaining string left by mistake ?
Topic: Community SubTopic: Apple Developers Tags:
Oct ’21
Reply to How to store users data - saving reached locations name
Here is how to add a button to annotation: https://stackoverflow.com/questions/41495956/how-to-add-button-to-mkpointannotation-in-swift That seems close to what you've done, as MKPinAnnotationView is deprecated. Or more recent: https://stackoverflow.com/questions/57086152/how-do-i-add-button-to-mkpointannotation-in-swift Replace as well MKPinAnnotationView
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to How to store users data - saving reached locations name
Important lines are those (canShowCallout = true): pinView?.canShowCallout = true let rightButton: AnyObject! = UIButton(type: UIButton.ButtonType.detailDisclosure) pinView?.rightCalloutAccessoryView = rightButton as? UIView You could store those date in UserDefaults (if the list is not excessively long). var myArrayOfPoints : [CLLocationCoordinate2D] = [] // I think it is CLLocationCoordinate2D, check it. You may prefer to save Strings of names ?         let defaults = UserDefaults.standard         defaults.set(myArrayOfPoints, forKey: "PointsOfInterestKey") Then you can retrieve easily from anywhere in app, and it is saved when you close app or even update the app.         let defaults = UserDefaults.standard         myArrayOfPoints = defaults.string(forKey: "PointsOfInterestKey") ?? [] Or in a local file.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to What are the maximum allowed numbers when versioning an app on the AppStore?
The API deals with 3 numbers for version: Major Minor Patch, hence 2.8.1 for instance. Here is the best spec I could find: Version Components majorVersion The major release number, such as 10 in version 10.9.3. minorVersion The minor release number, such as 9 in version 10.9.3. patchVersion The update release number, such as 3 in version 10.9.3.
Oct ’21
Reply to The storyboard opens in xml format.
There is something I don't understand: is it a SwiftUI app ? That's what the tag says. how do you have a storyboard if so ? Could you try the same on LaunchScreen storyboard ? Could you show the header you get when you open as XML ? Did you update Xcode recently (it seems you have Xcode 13) ? Does it work with older version ? If so, may be you should reinstall Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Exception NSException * "[<Calculus_area_and_perimeter.ViewController 0x14c506020> setValue: forUndefinedKey:]: this class is not key value coding-compliant for the key calcArea." 0x0000600002799cb0.
What Calculus_area_and_perimeter in ViewController ? Is it an IBOutlet you've defined (looks like, as underscore are Haley used in Swift). If so, check you have properly connected the IBOutlet to the object in IB. The way to correct: check you have connected Calculus_area_and_perimeter to its IBOutlet (a label ?) if not, do it if connected, disconnect ,reconnect do a Clean Build Folder possibly quit and relaunch Xcode. Note: it is not enough to report the error, you should show the code, with all the elements related to the error message. Otherwise we have too much to guess for.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to Vary for Traits in Xcode 13 beta?
@idit.b. Is it what you are looking for ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Objective c with iOS 15
DO you use third party frameworks ? Do you see where the crash occurs ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPhone isn't connecting to Xcode
Maybe the iPhone is just busy installing some resources. Wait a few more minutes. Have you a developer account ? Did you declare your iPhone in Xcode ? plug iPhone on USB Open Window > Device & Simulators Check your iPhone is properly registered You may also reboot iPhone.
Replies
Boosts
Views
Activity
Oct ’21
Reply to projects
Kindly give me the projects. What do you mean ? Ideas for apps ? That's the most valuable part to have an original idea for an app. No one will give it I fear. To get such ideas, just look around, in various rooms of your home, or in the street, looking at the sky, in various situations of daily life, asking you: Where should I need some help ? manage food and diet ? fitness help ? your book shelves management… There are so many ideas for those who know how to observe. Good luck.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Objective c with iOS15 tableView expandable
Please show the full crash report for the above code. I don't understand your code if (self.selectedIndex==-1)  { NSIndexPath *prev = [NSIndexPath indexPathForRow:self.selectedIndex inSection:0]; WIth selectedIndex==-1, what is value of previous (null ?) Add a log to test for prev.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to get MacOS version Beta
What you describe is surprising. majorVersion should be an integer(10, 11, 12), not 10.16. var majorVersion: Int The major release number, such as 10 in version 10.9.3. var minorVersion: Int The minor release number, such as 9 in version 10.9.3. var patchVersion: Int The update release number, such as 3 in version 10.9.3. Could you show the code where you call for it ? MacOS 10 ended at 10.15. Further beta (11ß) were sometimes named 10.16. But this is surprising for 12ß. Is it a remaining string left by mistake ?
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to store users data - saving reached locations name
Here is how to add a button to annotation: https://stackoverflow.com/questions/41495956/how-to-add-button-to-mkpointannotation-in-swift That seems close to what you've done, as MKPinAnnotationView is deprecated. Or more recent: https://stackoverflow.com/questions/57086152/how-do-i-add-button-to-mkpointannotation-in-swift Replace as well MKPinAnnotationView
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to store users data - saving reached locations name
Important lines are those (canShowCallout = true): pinView?.canShowCallout = true let rightButton: AnyObject! = UIButton(type: UIButton.ButtonType.detailDisclosure) pinView?.rightCalloutAccessoryView = rightButton as? UIView You could store those date in UserDefaults (if the list is not excessively long). var myArrayOfPoints : [CLLocationCoordinate2D] = [] // I think it is CLLocationCoordinate2D, check it. You may prefer to save Strings of names ?         let defaults = UserDefaults.standard         defaults.set(myArrayOfPoints, forKey: "PointsOfInterestKey") Then you can retrieve easily from anywhere in app, and it is saved when you close app or even update the app.         let defaults = UserDefaults.standard         myArrayOfPoints = defaults.string(forKey: "PointsOfInterestKey") ?? [] Or in a local file.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What are the maximum allowed numbers when versioning an app on the AppStore?
The API deals with 3 numbers for version: Major Minor Patch, hence 2.8.1 for instance. Here is the best spec I could find: Version Components majorVersion The major release number, such as 10 in version 10.9.3. minorVersion The minor release number, such as 9 in version 10.9.3. patchVersion The update release number, such as 3 in version 10.9.3.
Replies
Boosts
Views
Activity
Oct ’21
Reply to The storyboard opens in xml format.
There is something I don't understand: is it a SwiftUI app ? That's what the tag says. how do you have a storyboard if so ? Could you try the same on LaunchScreen storyboard ? Could you show the header you get when you open as XML ? Did you update Xcode recently (it seems you have Xcode 13) ? Does it work with older version ? If so, may be you should reinstall Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What are the maximum allowed numbers when versioning an app on the AppStore?
the max numbers for these version numbers. They are all declared as Int (NSInteger) , so the max should be maxInt. See in doc: Discussion When building 32-bit applications, NSInteger is a 32-bit integer. A 64-bit application treats NSInteger as a 64-bit integer. So you are safe to have 2.51.117 for instance.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Blank App icon issue Xcode 13
Did you try to do a Clean Build folder and recompile ? You may also find interesting help here: h t t p s : / / betterprogramming.pub/info-plist-is-missing-in-xcode-13-heres-how-to-get-it-back-1a7abf3e2514
Replies
Boosts
Views
Activity
Oct ’21
Reply to Niimprint label maker
my label-maker app Is it an app you developed ? says no longer available in the app store have you checked on the appStore if it is present ? Why has it been removed?! For this question you should contact Apple Support (link at the bottom of this page).
Replies
Boosts
Views
Activity
Oct ’21
Reply to Exception NSException * "[<Calculus_area_and_perimeter.ViewController 0x14c506020> setValue: forUndefinedKey:]: this class is not key value coding-compliant for the key calcArea." 0x0000600002799cb0.
What Calculus_area_and_perimeter in ViewController ? Is it an IBOutlet you've defined (looks like, as underscore are Haley used in Swift). If so, check you have properly connected the IBOutlet to the object in IB. The way to correct: check you have connected Calculus_area_and_perimeter to its IBOutlet (a label ?) if not, do it if connected, disconnect ,reconnect do a Clean Build Folder possibly quit and relaunch Xcode. Note: it is not enough to report the error, you should show the code, with all the elements related to the error message. Otherwise we have too much to guess for.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13 - Task not found in scope?
Do you test this code in playground ? I tested in playGround with Xcode 13 and it works without problem. You need to add: import UIKit
Replies
Boosts
Views
Activity
Oct ’21