Post

Replies

Boosts

Views

Activity

Reply to How to navigate user to specific device settings programatically?
What is the solution here if I want to open specific section in device settings without taking a chance of my app getting rejected while submission process? You present a message that says "go to the Passwords section of the Settings app". Most users can manage to do that without tripping over their own shoelaces. Sure, a button that goes directly there would be nice, but it's not going to happen. In practice, apps don't seem to be rejected for doing this using the private URL scheme - and a rejection is not the end of the world. Your choice.
Nov ’24
Reply to Xcode basics
What language would you recommend a beginning programmer learn? That depends on a lot of things. I would like to create programs that capture product info and prices from retail websites and then create infographics of product data. Also want to design / build website for my design business and have compatible app for iOS. To be honest I’m not the best person to advise on that sort of work, because it’s a long way from what I do day-to-day. But the same is probably true of most people on this particular forum. The answer is certainly not C, though. It might be Python or something Javascript-like. Do you see this as just the first programming problem of a decades-long career? If you do, it’s probably more useful to understand the fundamentals of computer science generally, rather than specific languages. Good luck.
Nov ’24
Reply to Xcode basics
I am starting with C as per some recommendations I have seen online. Don’t believe everything you read on the internet… "build failed" Somewhere there will be some much more detailed error messages; without more details it won’t be easy for anyone to offer useful advice.
Nov ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Even though the chekReceipt() Swift function returns a String (-> String), the MyAppTransaction class method in the automatically generated name-Swift.h file is defined as (void). The swift function returns a string asynchronously. Since objC doesn't have async functions, it returns void and passes the string later to the completion handler. I tried to edit the name-Swift.h header to change the return type That's not going to work. Within the scope of the completion handler you can use the status string ... but you can’t return it to the calling function. Correct, and there is no way to avoid that. You need to restructure to work with this. I need to post an alert. You can only post an alert from the main thread. Calling one from the completion handler will cause a crash. In that case, in the completion handler you can dispatch to the main thread to post the alert. Pseudo-code: dispatch_async(dispatch_get_main_queue(), ^{ present_alert(message); });
Nov ’24
Reply to Using the same texture for both input & output of a fragment shader
What I'm trying to do (simplifying a bit) is blend multiple color layers using my own blending functions into a "master" texture. So what we have is a fragment shader taking in a bunch of inputs, among them the master texture for reading, and outputting to that same master texture as an output color attachment. You can do your own blending in a fragment shader without this complexity. A fragment shader can read the current value of the framebuffer ("color attachment") pixel without having to make it an input texture (on iOS). In OpenGL ES, this is defined by GL_EXT_shader_framebuffer_fetch (https://registry.khronos.org/OpenGL/extensions/EXT/EXT_shader_framebuffer_fetch.txt). In metal, I believe that you need to add [[color(0)]] to a fragment shader input - see table 5.5 of the spec at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf - but I've never tried this myself.
Topic: Graphics & Games SubTopic: Metal Tags:
Oct ’24
Reply to Appstore Rejection - Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app
Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app: Website: http://abc.io That seems pretty unambiguous. Are you saying that the App Description field in App Store Connect no longer mentions that website? (If you have multiple localisations, have you checked them all?)
Oct ’24
Reply to How to navigate user to specific device settings programatically?
What is the solution here if I want to open specific section in device settings without taking a chance of my app getting rejected while submission process? You present a message that says "go to the Passwords section of the Settings app". Most users can manage to do that without tripping over their own shoelaces. Sure, a button that goes directly there would be nice, but it's not going to happen. In practice, apps don't seem to be rejected for doing this using the private URL scheme - and a rejection is not the end of the world. Your choice.
Replies
Boosts
Views
Activity
Nov ’24
Reply to Xcode basics
What language would you recommend a beginning programmer learn? That depends on a lot of things. I would like to create programs that capture product info and prices from retail websites and then create infographics of product data. Also want to design / build website for my design business and have compatible app for iOS. To be honest I’m not the best person to advise on that sort of work, because it’s a long way from what I do day-to-day. But the same is probably true of most people on this particular forum. The answer is certainly not C, though. It might be Python or something Javascript-like. Do you see this as just the first programming problem of a decades-long career? If you do, it’s probably more useful to understand the fundamentals of computer science generally, rather than specific languages. Good luck.
Replies
Boosts
Views
Activity
Nov ’24
Reply to Xcode basics
I am starting with C as per some recommendations I have seen online. Don’t believe everything you read on the internet… "build failed" Somewhere there will be some much more detailed error messages; without more details it won’t be easy for anyone to offer useful advice.
Replies
Boosts
Views
Activity
Nov ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Even though the chekReceipt() Swift function returns a String (-> String), the MyAppTransaction class method in the automatically generated name-Swift.h file is defined as (void). The swift function returns a string asynchronously. Since objC doesn't have async functions, it returns void and passes the string later to the completion handler. I tried to edit the name-Swift.h header to change the return type That's not going to work. Within the scope of the completion handler you can use the status string ... but you can’t return it to the calling function. Correct, and there is no way to avoid that. You need to restructure to work with this. I need to post an alert. You can only post an alert from the main thread. Calling one from the completion handler will cause a crash. In that case, in the completion handler you can dispatch to the main thread to post the alert. Pseudo-code: dispatch_async(dispatch_get_main_queue(), ^{ present_alert(message); });
Replies
Boosts
Views
Activity
Nov ’24
Reply to Using the same texture for both input & output of a fragment shader
What I'm trying to do (simplifying a bit) is blend multiple color layers using my own blending functions into a "master" texture. So what we have is a fragment shader taking in a bunch of inputs, among them the master texture for reading, and outputting to that same master texture as an output color attachment. You can do your own blending in a fragment shader without this complexity. A fragment shader can read the current value of the framebuffer ("color attachment") pixel without having to make it an input texture (on iOS). In OpenGL ES, this is defined by GL_EXT_shader_framebuffer_fetch (https://registry.khronos.org/OpenGL/extensions/EXT/EXT_shader_framebuffer_fetch.txt). In metal, I believe that you need to add [[color(0)]] to a fragment shader input - see table 5.5 of the spec at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf - but I've never tried this myself.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Appstore Rejection - Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app
Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app: Website: http://abc.io That seems pretty unambiguous. Are you saying that the App Description field in App Store Connect no longer mentions that website? (If you have multiple localisations, have you checked them all?)
Replies
Boosts
Views
Activity
Oct ’24