Category "ios"

SwiftUI: How to center a view vertically and horizontally inside of a container view and put something under it

I searched stackoverflow, but unfortunately didn't find a solution to this particular case. I try to display following scenario: a container view a Text that

NavigationView in iPad popover does not work properly in SwiftUI

I have the following code that displays a popover when a button is tapped: struct ContentView: View { @State private var show = false var body: some

How to create a delay in Swift?

I want to pause my app at a certain in point. In other words, I want my app to execute the code, but then at a certain point, pause for 4 seconds, and then cont

How to change the order of list of in-app purchases in appstore app information section?

I have more than 20 in-app purchase subscription plans inside my app. I want to show few selected plans inside the Appstore information section and also I need

Constraint "equal heights" for views of different sizes in iOS?

I saw a lot of similar questions but they are all for situations with equal views. In my case I have a vertical stack of views: And they should keep proportio

Apple Push Service certificate is not trusted

I have recently created an Apple Push Service certificate on my M1 mac mini. In the Keychain, it says the certificate is not trusted. I have installed the Deve

How to convert hexadecimal string to an array of UInt8 bytes in Swift?

I have the following code: var encryptedByteArray: Array<UInt8>? do { let aes = try AES(key: "passwordpassword", iv: "drowssapdrowssap") encrypt

Image.network throw error even after defining errorBuilder in Flutter

I am facing some issues with loading images from URLs in Flutter. Here is my code: @override Widget build(BuildContext context) { return ClipRRect(

Unable to add a source with url `https://cdn.cocoapods.org/` named `trunk`

I'm building an app with capacitor for ios. When I launch the command 'npx cap sync ios' (which launch pod install) and I get this error : ✖ Updating i

[UILabel copyWithZone:]: unrecognized selector sent to instance

I feel like I'm banging my head against the wall here (and I'm ready to do that, frankly). I'm trying to set a background to the view. Background I need to se

iOS WKWebView not showing javascript alert() dialog

I am having some trouble getting a WKWebView in iOS 8 to display an alert dialog that is called from Javascript. After creating a standard WKWebView and loading

How can I log each request/response using Alamofire?

Is there a way to log each request / response using Alamofire (something similar to AFNetworkActivityLogger) ? I am aware of Printable, DebugPrintable and Outp

what is the difference between @compatibility_alias and typedef use on @class in Objective-C

Is there any difference between : @compatibility_alias AliasClassName ExistingClassName and typedef ExistingClassName AliasClassName;

Cocoapods Warning - CocoaPods did not set the base configuration of your project because because your project already has a custom config set

After I execute a pod install at the base of my project, I get the following error: CocoaPods did not set the base configuration of your project because bec

Importing Project-Swift.h into a Objective-C class...file not found

I have a project that was started in Objective-C, and I am trying to import some Swift code into the same class files that I have previously written Objective-C

UIButton not respect Aspect Fill contentMode after resizing animation

I am use auto layout. Following is the initial state of the view. In the centre is a button contained in a view. The button has contentMode Aspect Fill, and t

Alert.alert not working in React native iOS, but perfectly fine in Android

Please check the code , import { Alert, } from 'react-native'; checkForSendingOtp = () => { let hash = 'aBcDeGgd'; Platform.OS === 'android'

Store photos in mysql database with iOS app

I am looking for a how to create a mysql database with the photos which are uploaded by my iOS app. I have already programming the picker and the upload part, b

React Native - FBReactNativeSpec Command PhaseScriptExecution failed with a nonzero exit code

I am using a MacBook Pro with M1 chip MacOS Big Sur Xcode Version 13.2.1 node v14.17.5 I wanted to follow this tutorial to set up a new React Native project cal

How to create Previous/Next buttons above keyboard like in Safari

I'm trying to add Previous/Next buttons above the keyboard like in mobile Safari. There are a lot of questions about that here on StackOverflow, but most answer