Category "ios"

showBluetoothAccessoryPickerWithNameFilter:completion: cancel button

is there a way to catch the cancel button event on a showBluetoothAccessoryPickerWithNameFilter:completion:? completion block is executed in the same time (way

Swift ios check if remote push notifications are enabled in ios9 and ios10

How can I check if the user has enabled remote notifications on ios 9 or ios 10? If the user has not allowed or clicked No I want to toggle a message asking if

DragGesture on a VStack with lot of Buttons, how to detect when the drag is inside a Button

In UIKit this could be done with code like this: if button.frame.contains(sender.location(in: rightStackView)) { ... } but in SwiftUI I can't seem to find an

Xcode gave strange newsstand-error when trying to submit an app

finaly everything works fine and I want to submit my first app the the Appstore. But when I click submit in Xcode 4.1 I get this strange error message: To i

Dismiss Keyboard

So I have a self created top bar controller that is being implemented in my other controllers views. I have a textfield on this top bar. I was wondering what

How to consecutively present two alert views using SwiftUI

I want to immediately present the second alert view after click the dismiss button of the first alert view. Button(action: { self.alertIsVisible = true })

How to popup a document picker in ios and macos using catalyst

I'm trying to popup a document picker using mac catalyst, but all I get is a blank screen. All works well on ios 13.2.2 on iPad and iPhone, but not on macos 10

How to check light intensity using iPhone camera

Is there any way to check the light intensity using iPhone? Does API allows to do this?

Swift function returning two different types

I need a function that can return either a String or an Int depending on the parameters entered eg: func getValue (type: String) -> (String || Int) { //thi

Disable UIPageViewController bounce

Searched a lot for this one, but couldn't find a proper solution yet. Is it possible to disable the bounce effect of a UIPageViewController and still use the

Method 'application:openURL:options:' is not called

I'm trying to open my app from a web page using custom schemes. The app is opened but the following method is not called: func application(_ app: UIApplication

Opening Instagram app from a link on iOS

I am providing a feed which is consumed by both desktop and mobile apps which contains links to images, users, and tags on Instagram. When these links are click

iOS app reject because of healthkit

I am using HealthKit in my app to read users daily steps data and for that I enable HealthKit in my app. I uploaded app without NSHealthShareUsageDescription a

What causes this iOS permission prompt for "use Bluetooth for new connections"?

Since iOS13, our app which uses BLE beacons for location, now gets two Bluetooth related permissions prompts. The first one is understandable and expected:

How to convert Chinese Html String into NSString

For converting html string into NSString i am using below function Code Snippet : +(NSString *)getStringFromHtmlString:(NSString *)str { NSData *stringD

Linking a static library to an iOS project in Xcode 4

I have a project (AQGridView) that compiles to a static library, but I can't seem to add it to my project. Dragging in the project to my project creates a work

Сocoapods trunk URL couldn't be downloaded

I am getting this error when I try to pod repo update and pod install CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/deprecated_podspecs.txt,

Using user input in SwiftUI to perform calculations

I'm making a school project in which I have to find the weight of a person on different planets, but I am confused about how I should use the input and multiply

Facebook share error : "the page you requested cannot be displayed right now"

I have used custom stories to do the facebook share and the share happens correctly and displays in posted user's facebook wall. See below: The issue when wh

The linked framework 'Pods_Runner.framework' is missing one or more architectures required by this target: x86_64

I am getting the below error while building my flutter app in IOS simulator via M1 Macbook pro. I am using VS code for editing. I have no issues with the buildi