Questions tagged [ios]

iOS is the mobile operating system running on the Apple iPhone, iPod touch, and iPad. Use this tag [ios] for questions related to programming on the iOS platform. Use the related tags [objective-c] and [swift] for issues specific to those programming languages.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Is it possible to upload while device is locked in iOS?

Is it possible to do an upload while the phone is locked or it's an OS restriction? Are there apps out there that have done it? I've been searching for a while on a solution for uploading data while ...
0
votes
0answers
6 views

How to draw a bezier curve with textured color in iOS?

I want to simulate a paintbrush stroke when the user moves his finger to paint on the screen. I can record the coordinates of his stroke, and generate a Bezier curve with a certain width, but I don't ...
0
votes
0answers
10 views

UINavigationBarAppearance not working for image based bar button items

Xcode Version 11.0 beta 5 (11M382q) I'm using the new appearance APIs to tint the color of the bar button items when one of my view controllers is the top view controller. I'm using the following ...
0
votes
0answers
5 views

Are URLSession objects resource intensive?

Would it be resource intensive to create a new URLSession for every single web request? Some background: I'm working on a library for making web requests. I'm trying to add a feature that allows ...
0
votes
0answers
10 views

How to apply a gradient on tab bar items in Swift

I have a custom UITabBarController set up, and I want to apply a gradient (with multiple colors) on selected tab bar items. Please note that (1) it's the selected tab bar items I want to apply a ...
1
vote
0answers
7 views

iOS UITextInput control: Receiving forward-delete key from hardware keyboard

I have implemented a complicated UITextInput that works quite well on iOS save for one missing feature: when the user has a hardware keyboard connected (at least, in the simulator) and no text is ...
-1
votes
0answers
9 views

How to access raw touchscreen data from a smartphone?

I'm developing a device that interacts with capacitative touch screens of iPhones. I am looking for a way to load raw sensor signals and process them to perform a function. I know it is possible to ...
0
votes
0answers
5 views

how to fix ios null evaluating in react-native-audio-recorder-player

my code is working perfectly in android platform but in ios i get Cannot read property 'startRecorder' of undefined. error i was looking for an audio recorder package for react-native, this package ...
0
votes
1answer
42 views

When does the == operator depend on Equatable and when does it not?

I have an array of the following struct: struct AtomCameraType { var APIIdentifier: Input.HDRCamera var name: String init(... } That APIIdentifier, of type Input.HDRCamera, is a ...
0
votes
0answers
15 views

FirstResponder ignitable only in a little piece of a textView

I have this textView in the inputAccesoryView, the case is that the textView have 80 of height and all the screen of width. Problem: the finger will init the firstResponder only within the first 10 -...
0
votes
0answers
8 views

Unity iOS support, installation failed

I am trying to use Unity to create an iOS app. I used Unity Hub to install Unity. I then opened Unity, went to File-Build Settings. I click on iOS, and it says "No iOS module loaded", so I clicked on ...
0
votes
0answers
21 views

App runs on device or simulator but release .ipa build crashes

I have an issue where my app works just fine if I run it directly onto the device (iPad) from XCode, or on an iPad simulator. But when I create an Ad-Hoc build, or upload to Testflight, the resulting ...
0
votes
1answer
8 views

Cordova Camera iOS Issue: NOT_FOUND_ERR

I am using the cordova-plugin-camera cordova plugin (version 4.0.3), wrapped by the Ionic Native wrapper for Ionic 4 @ionic-native/[email protected] I'm using it to capture a photo (regular or from library), ...
0
votes
1answer
23 views

Get difference of lists flutter dart

I have two lists [1,2,3,4,5,6,7] and [3,5,6,7,9,10]. I want to get the difference of the first list and the second list. The expected output would be [1,2,4] since those are the only elements in ...
3
votes
0answers
18 views

skipPrevious and skipNext buttons inactive even with items in queue Google Cast iOS Sender SDK v4.3.5 and above

I have an iOS sender application for video streaming that supports queueing and using the skipPrevious and skipNext buttons to skip forward and backward between videos in the queue. The app works with ...
0
votes
0answers
10 views

react-native 0.59 error — CompileC RCTJavaScriptLoader failed

I upgraded react-native from 0.57.8 to 0.59.10, and now I can't build the app for iOS (Android works). $ yarn run ios ... [lot of lines of output] ... ... -c /Users/me/project/node_modules/react-...
-4
votes
0answers
20 views

want to active Action PickerView [on hold]

let writenpicker = ["ايقاف", "٥ دقائق", "١٠ دقائق", "١٥ دقيقه", "٣٠ دقيقه" , "١ ساعه"] let soundpicker = ["ايقاف", "٥ دقائق", "١٠ دقائق", "١٥ دقيقه", "٣٠ دقيقه" , "١ ساعه"] func numberOfComponents(in ...
0
votes
0answers
7 views

apple account necessary to bring a ionic app to a device

Is an apple account necessary to bring a ionic app to a device only for testing and preview ? Found this https://ionicframework.com/docs/building/ios Ionic capacitor copy ios Ionic cordova prepare ...
1
vote
1answer
44 views

collectionView didSelectItemAt superview not selecting the correct Object

I have a list of sensors in a collectionView inside a UIView class called MyCropView where I show some data about that crop. Im trying to change the value of some sensors like the icon and the ...
0
votes
1answer
8 views

Request Push Notification Permissions for Cordova iOS and Android?

I'm stuck and would greatly appreciate your help. Details I have a working React/Cordova app. I'm using PubNub to publish APNS and FCM notifications. I'm using cordova-plugin-device to obtain the ...
0
votes
1answer
25 views

SwiftUI: Type of expression is ambiguous without more context, When passing ObservableObject between Views

I was looking for an example for a DataStore in SwiftUI and found this example. import SwiftUI import Combine class MyDatabase: ObservableObject { let didChange = PassthroughSubject<...
0
votes
1answer
26 views

RootViewController isn’t My Active UITableViewController

UIApplication.SharedApplication.KeyWindow.RootViewController Hi guys. Using the code above, I can find the active ViewController but now that I have a UITableViewController, this code is not able to ...
0
votes
2answers
29 views

Limit Navigation Controller to a set of UIViewControllers

Is it possible to limit the NavigationController to a certain set of UIViewControllers. See the image, I want the navigation controller, but only for the login/create user session. Once logged in, I ...
-1
votes
1answer
44 views

My Question is about changing a UIImage when a button is pressed

So I am quite new to coding, learning Swift 3 on Udemy. I'm trying to test my skills by building a music app that contains 3 sound files, at the moment I am struggling to get the image of the current ...
1
vote
0answers
16 views

Changes to storyboard removing all ambiguous=“YES” properties

I have a complicated storyboard that has ~20 controllers developed over several years which has been working great. However, with most recent versions of Xcode, each time I make any changes at all to ...
0
votes
0answers
14 views

Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory

i want to download files from api and save it. my code work then stop and show me this error: Task <4F489168-F25C-4775-B7A9-6C1ECC8510B6>.<7868> load failed with error Error Domain=...
-1
votes
0answers
13 views

IOS To External Display Slideshow [on hold]

I want to display a slide show on an external display controlled from an ipad. I want to achieve this in any Wired or wireless way like airplay. Just that the main active screen on the iPad will be ...
1
vote
1answer
21 views

CSS :active in iOS

I am using the active pseudo class for a button and it's not working in iOS only. Works on all desktop browsers and android browsers. I have used the Safari debugging tools with an iOS device ...
0
votes
0answers
21 views

SwiftUI Canvas won't build

I have some SwiftUI code and it seems to work great when I build to a real iOS device or to an iOS simulator. However in the SwiftUI canvas the preview says Failed to build MySwiftUI.swift clicking ...
-1
votes
2answers
37 views

Why are my iOS images not appearing when I run my app?

I'm creating a simple dice rolling app but when I run my project, the dice don't appear. class ViewController: UIViewController { let diceArray = ["dice1", "dice2", "dice3", "dice4", "dice5", "...
0
votes
1answer
16 views

How to pass complex dictionary which contains array of model objects with alamofire?

I need to pass following parameters in my Alamofire request {"order":{"student_id":"1483","restaurant_id":1,"quantity":1,"total_amount":90.0,"total_discount":0.0},"items":[{"item_id":"1","offer":"0.0"...
0
votes
3answers
35 views

Suggestions regarding UIImageView customization

I'm trying to figure out the best way to recreate this image in code. I've thought about taking two UIImageViews and connecting them via constraints but that would only get me 50% of the way there ...
0
votes
0answers
18 views

ReactNative, app runs on emulator but not on real iPhone

I am trying to run an app with react native on iOS. The build is correct but when i run it, it shows the splash screen and then stays all white, and xcode throws me this error: libsystem_kernel....
-3
votes
0answers
9 views

Cannot able to download the IOS app from Intunes with my Iphone 6,and 7 [on hold]

When I try to download the ios app from in-tunes it's not downloading fully. It's just showing a black background app. Can anybody help me to solve this issue?.
-1
votes
2answers
21 views

Check if user already has an account just by email

How do I check if a user exists in my Firebase Database only by email within Swift? The first screen the user should see allows him to type in his email. After that he gets to the sign up page or the ...
1
vote
0answers
19 views

How to read a pre-loaded sqlite database in swift

I am trying to load a pre-loaded sqlite database with .db3 extension but getting error "unexpectedly found nil" I embedded the file in targetapp >> BuildPhases >> Copy bundle resources. let dat = ...
0
votes
0answers
7 views

Mac Catalyst - Dragging to an inactive window

An iPad app that accepts UIImage objects as dragging items has been built for macOS via Catalyst in Xcode 11b6. When I drag images from Finder or Photos I am finding that my app must first be placed ...
0
votes
0answers
6 views

Removing iOS permissions from CocoaPods installation

I installed Cocoapods (v1.7.5) for use with cordova-plugin-firebasex and apparently it adds hooks for permissions for a bunch of iOS permission based privacy features. It wasn't until after I ...
-1
votes
0answers
8 views

Standard way of streaming audio data from a mobile device to a server

There are plenty of good sources on how to receive audio data on mobile phones. I find (almost) none of streaming audio data TO a server in a standardized (i.e., using a standard protocol, such as RTP)...
-7
votes
2answers
40 views

How to make a swift get query to specific url [on hold]

I am new to swift programming and need sam help. I want to know how I can make a get query to specific url and save the response data to variable. I am sorry that I can't show you the url but its a ...
0
votes
1answer
42 views

Xcode Playground crashes with a simple UITableViewController code

I encountered a very strange problem with a UITableViewController subclass instance in the Xcode Playground. I registered two UITableViewCells programmatically in viewDidLoad, and dequeued cells in ...
0
votes
1answer
30 views

Collection View Cell Action using Delegates and Protocols

I have created a View Controller that contains a UITableView and each UITableViewCell contains a UICollectionView. I made 2 API calls and every collectionView present the first 5 results of each API ...
0
votes
2answers
50 views

How to create and run a Thread in Swift using the Foundation framework?

I want to create a simple thread in Swift. I've no previous experience with Objective-C, so I find the documentation pretty confusing, including terms like "receiver", "selector", and "target" - ...
0
votes
0answers
31 views

Swift generic types in protocol issue. Protocol can only be used as a generic constraint

I have created a protocol for my services: protocol SaveCoreDataObjectServiceProtocol { associatedtype T func getPending() -> T? func deletePending(with completion: @escaping (...
1
vote
0answers
20 views

Adding php file to AWS RDS for MySQL database

I'm currently playing around with setting up an ios app to connect to a mysql database. I've created the database and am hosting it on AWS RDS. I've hit a roadblock when trying to add my php file to ...
0
votes
0answers
15 views

Cordova Application - Event Listener for before keyboard show / open

I'm trying to change my keyboard type based on html input type text , tel or email. I have manage to change the keyboard type using cordova plugin, here is the code. NSString* UIClassString = [@[@"...
0
votes
1answer
15 views

Remove iOS scroll bounce in ionic 3

I’m developing an Hybrid app for both iOS and Android using ionic-3. On Android, when the user reaches the bottom of the page, the scrolling stops. On iOS, when the user reaches the bottom of the ...
0
votes
0answers
30 views

Copied Realm not returning data

I am having an issue accessing data in a copied Realm. In my app, I have three Save slots which store saved Realms of my app’s data. These are all stored in the application directory. I am able to ...
1
vote
0answers
28 views

ModalDropdown width issue in React Native

I am working on a React Native application. I am testing it os IOS I have used ModalDropdown in it, the code of ModalDropdown is: <ModalDropdown style={{display:"flex", justifyContent:"...
0
votes
0answers
26 views

How to retrive the information of BLEs which are connected to a BLE

I'm new to Core Bluetooth. Using custom GATT my BLE device will exchange the information with other BLE devices, What I have to do is collect the information that my BLE device got and need to send it ...