Category "ios"

[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

CLLocationDegrees to String variable in Swift

Given that the code var latitude = userLocation.coordinate.latitude returns a CLLocationDegrees Object, how can I store the value in to a variable so that I

SwiftUI dragging ScrollView flickers as the keyboard is dismissing

When I develop the feature that allows users drag ScrollView to dismiss keyboard in SwiftUI, I find that if you drag ScrollView as the keyboard is dismissing, t

What's the difference between all the Selection Segues?

Show Show Detail Present Modally Popover presentation Custom What is the difference between them? I couldn't find any documentation on it. There used to be so

Flutter: Playing sound from UInt8List in Android and iOS

I have a UInt8List which contains sound byte data (can be mp3 or wav). I am trying to build a small sound player component. However I found no way to put the by

How to determine if one array contains all elements of another array in Swift?

I have 2 arrays: var list:Array<Int> = [1,2,3,4,5] var findList:Array<Int> = [1,3,5] I want to determine if list Array contains all findList elem

Swift - Remove " character from string

I have a string which is "Optional("5")". I need to remove the "" surrounding the 5. I have removed the 'Optional' by doing: text2 = text2.stringByReplacingO

How to change keyboard background color in iOS?

I would like to know how to change the keyboard background color programmatically in iOS? The background is normally grey but I have already seen black backgrou

What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11?

The height of the UITabBar seems to have changed between iOS 7 and 8/9/10/11. I'm posting this question for others to easily find the answer. So: What's the he

Turn off Autocorrect Globally in an App

I would like to disable text-entry autocorrect in an iPad application, regardless of what the global settings for autocorrect are on the device. Is there a good