Post

Replies

Boosts

Views

Activity

Reply to Conditionally Adding and Deleting a Row in a UITableView
That's clearer. You are not adding or deleting row, but show or hide a TextField. Declare in storyboard a UITextField, positioned just below the segmented control. Declare it as hidden in the storyboard. Define its delegate (the viewController). Define placeholder as: enter custom tip declare an IBOutlet for this UITextField : tipTextField for instance there is an IBAction associated to the SegmentedControl (valueChanged event) in the IBAction, test for the selection @IBAction func segmentSelection(_ sender: UISegmentedControl) { let selection = sender.selectedSegmentIndex if selection == sender.numberOfSegments - 1 { // The last segment = Any tipTextField.isHidden = false } else { tipTextField.isHidden = true // store the relevant value in a tipValue property } } You should also define and IBAction for the textField, (for EditingDidEnd and for didEndOnExit), that will read the text you have entered and convert to Int to get the tip value. Then save this value in a tipValue property of the ViewController. Hope that helps. Don't forget to close the thread if OK. Otherwise, explain what you are missing.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’25
Reply to Conditionally Adding and Deleting a Row in a UITableView
It is not very clear. Could you post a sketch showing: what are the options (custom and another)? Are there 2 buttons ? Or only one button which behaviour should change depending on the slider value ? which another option is it ? Is the TextField inside TableView row ? when the custom option is tapped, bring up a row immediately below there and have a UITextField You bring up a new row ? Or an existing one ? do you add a TextField, or was it already in the row ? When another option, let's say 10%, is tapped, I want the text field row to go away. Do you want to delete the row ? Or just hide it ? If there is only one button which behaviour change depending on the slider value: in the button action, you test the value of slider if 20% or more, then call mytableView.insertRows(at…) if less, then call mytableView.deleteRows(at…) In both cases, don't forget to update the dataSource.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’25
Reply to App name
If the name is not in the app store, why can't I use the name? May be it is the name of an app available only in another region ; hence you don't see it when you query the appstore from your region ? You should contact Apple support to get clarification.
Jun ’25
Reply to Hy everyone i am newbie developer
Welcome to the forum. But your request for a review of your project is not for the forum. What do you want to be checked ? If you have questions, technical, UI, publishing, … about your app, please ask. provide screenshots if needed. You should read this post on how to properly use the forum: https://developer.apple.com/forums/thread/706527
May ’25
Reply to How to fix an extra whitespace at the top of UIAlertController action sheet on iPad?
As explained here https://developer.apple.com/design/human-interface-guidelines/action-sheets, actionSheet actions are listed at the bottom of the view. So you could try to specify the frame of the alertController to reduce height to fit the 4 actions. More info here: https://stackoverflow.com/questions/26774038/how-to-set-height-and-width-of-a-uialertcontroller-in-ios-8
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’25
Reply to plist failed to open after upgrading Xcode to Version 16.4 (16F6)
Yes, that looks like debugger noise. Good continuation, don't forget to close the thread.
Replies
Boosts
Views
Activity
Jun ’25
Reply to English is not being shown in the list of languages for my app even though that's the primary language
Did you check in File navigator that there is a file for english in: InfoPlist.strings Localizable.strings and most important, in the settings bundle Just like here:
Replies
Boosts
Views
Activity
Jun ’25
Reply to plist failed to open after upgrading Xcode to Version 16.4 (16F6)
Did you try to perform a Clean Build Folder ? Does it prevent the app from running ? If not, that's probably just debugger noise. It already happened in the past: https://developer.apple.com/forums/thread/762815 Did you file a bug report ?
Replies
Boosts
Views
Activity
Jun ’25
Reply to Hi I'm New here on the forums (been a developer for a couple years now)
Welcome to the forum. Good to be active, will be better with posts that have a minimum interest for others. Read this to know how to use the forum properly: https://developer.apple.com/forums/thread/706527 Have a good day.
Replies
Boosts
Views
Activity
Jun ’25
Reply to How I can localize an array ?
Why do you need LocalizedStringResource ? Did you try with Localizable.strings file as described here: https://www.kodeco.com/books/swiftui-cookbook/v1.0/chapters/1-create-a-localized-string-in-swiftui
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Conditionally Adding and Deleting a Row in a UITableView
That's clearer. You are not adding or deleting row, but show or hide a TextField. Declare in storyboard a UITextField, positioned just below the segmented control. Declare it as hidden in the storyboard. Define its delegate (the viewController). Define placeholder as: enter custom tip declare an IBOutlet for this UITextField : tipTextField for instance there is an IBAction associated to the SegmentedControl (valueChanged event) in the IBAction, test for the selection @IBAction func segmentSelection(_ sender: UISegmentedControl) { let selection = sender.selectedSegmentIndex if selection == sender.numberOfSegments - 1 { // The last segment = Any tipTextField.isHidden = false } else { tipTextField.isHidden = true // store the relevant value in a tipValue property } } You should also define and IBAction for the textField, (for EditingDidEnd and for didEndOnExit), that will read the text you have entered and convert to Int to get the tip value. Then save this value in a tipValue property of the ViewController. Hope that helps. Don't forget to close the thread if OK. Otherwise, explain what you are missing.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Conditionally Adding and Deleting a Row in a UITableView
It is not very clear. Could you post a sketch showing: what are the options (custom and another)? Are there 2 buttons ? Or only one button which behaviour should change depending on the slider value ? which another option is it ? Is the TextField inside TableView row ? when the custom option is tapped, bring up a row immediately below there and have a UITextField You bring up a new row ? Or an existing one ? do you add a TextField, or was it already in the row ? When another option, let's say 10%, is tapped, I want the text field row to go away. Do you want to delete the row ? Or just hide it ? If there is only one button which behaviour change depending on the slider value: in the button action, you test the value of slider if 20% or more, then call mytableView.insertRows(at…) if less, then call mytableView.deleteRows(at…) In both cases, don't forget to update the dataSource.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to App name
If the name is not in the app store, why can't I use the name? May be it is the name of an app available only in another region ; hence you don't see it when you query the appstore from your region ? You should contact Apple support to get clarification.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Customers begging for App Store (In Review 4+ Days)
what can we do to get the app into the store? 4 days… so 2 working days probably. Which is not totally unusual. What category of app is it ? Some require longer verification process.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Minimum macOS Deployment target on Xcode 16.4
I tested for an app with 10.13 deployment target and Xcode 16.4. It works fine. So my guess is that targets are the same as for Xcode 16.2 and 16.3: iOS 15–18 iPadOS 15–18 tvOS 15–18 watchOS 7–11 visionOS 1–2 macOS 10.13–15 DriverKit 19–24
Replies
Boosts
Views
Activity
May ’25
Reply to All Apps Removed from App Store — "Developer Program Membership Expired" Message Despite Active Renewal
with a renewal date of May 26, 2026. That's when it was renewed. But when was it due to be renewed ? In any case, you should contact support. https://developer.apple.com/contact/
Replies
Boosts
Views
Activity
May ’25
Reply to Safari tarayıcıdan siteye çok fazla istek geliyor
Foruma hoş geldiniz. Sorunuz bir geliştirme ile ilgili değil, bir uygulamanın kullanımı ile ilgili. Lütfen sorunuzu https://discussions.apple.com/welcome adresine gönderin. Your question is not about development, but about app use. You'd better post your question to https://discussions.apple.com/welcome
Topic: Safari & Web SubTopic: General
Replies
Boosts
Views
Activity
May ’25
Reply to Hy everyone i am newbie developer
Welcome to the forum. But your request for a review of your project is not for the forum. What do you want to be checked ? If you have questions, technical, UI, publishing, … about your app, please ask. provide screenshots if needed. You should read this post on how to properly use the forum: https://developer.apple.com/forums/thread/706527
Replies
Boosts
Views
Activity
May ’25
Reply to How to fix an extra whitespace at the top of UIAlertController action sheet on iPad?
As explained here https://developer.apple.com/design/human-interface-guidelines/action-sheets, actionSheet actions are listed at the bottom of the view. So you could try to specify the frame of the alertController to reduce height to fit the 4 actions. More info here: https://stackoverflow.com/questions/26774038/how-to-set-height-and-width-of-a-uialertcontroller-in-ios-8
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to NASDAQ: APPL Is Cooked
Please STOP polluting the forum.
Replies
Boosts
Views
Activity
May ’25