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.

0
votes
0answers
3 views

Issue of trying to add an image to a ImageView using Code and the storyboard

So my issue is trying to find out a way to add an image to a IOS app using c#. Its a single view application. I added a ImageView to the storyboard. I named it to imageBox. I have tried multiple ...
1
vote
0answers
5 views

ScrollView.contentOffset.y can't move less than 0.333 pixel

I'm trying to create a teleprompter. Basically auto scrolling scrollView. I'm moving my scrollView.contentOffset.y by 1 point/pixel every X time. I'm giving the user the option to slow the ...
0
votes
0answers
14 views

Xcode couldn't find any iOS App Development provisioning profiles matching “App Name”

I am trying to build flutter with one of XCode's simulators but it is giving me this error in the general tab of Runner Xcode couldn't find any iOS App Development provisioning profiles matching "...
0
votes
1answer
14 views

Appending an array within a post rather than creating a new post

I am trying to make a comment section for my open source social media app. I have a table of posts. When you click a post in this table, it takes you to the MainViewController, where you can read the ...
0
votes
0answers
9 views

Updating a GitHub iOS SDK without overwriting custom changes

About a year ago I built an iOS app for my Company using the Shopify mobile buy sdk located at: https://github.com/Shopify/mobile-buy-sdk-ios While customizing this app to suit my company's needs, I ...
0
votes
1answer
29 views

How to skip display data from API into collection view cell if count equals 0

I am parsing data from an API into a collection view in which there is a field named count. I don't want to display data whose count is 0 and I would like the other collection view cells to rearrange ...
1
vote
0answers
17 views

iOS In-App Purchases: SKErrorDomain Code=0 returned when trying to redeem subscription offer within valid subscription period

Objective: I would like to redeem a subscription offer while an autorenewable subscription is currently active and not expired. What I've tried: I set up a Store Kit demo project on Xcode 10.2 in ...
0
votes
1answer
8 views

iOS - How to get Facebook Campaign information when is installed from Ad

We are running an install campaign on Facebook and, when user installs the app due to tapping on an Ad, I would like to fetch the campaign information from within iOS app and send to our server; like ...
0
votes
1answer
16 views

How to use ModuleConfiguration and ModuleInitializer in swifty_viper implementation

I have generated a new VIPER module in my application using Generamba (https://github.com/strongself/Generamba) with it's swifty_viper template. It has generated a module which have Configurator group ...
0
votes
0answers
8 views

IOS Unity development, tracker and dataset problems

I want to run a Unity/Vuforia based game on my iPhone8 but am getting some errors. The Unity Scripts and all the IOS Code builds and I am able to pull up the home screen of my app on my phone but I ...
0
votes
1answer
8 views

JavaScript - lazy-loading image fallbacks don't appear on iOS11 Safari

I've created a script that utilises the element with webp and jpg fallbacks with some lazy-loading to serve very high-quality images. So far it works perfectly in every 'modern' browser except iOS11 ...
1
vote
0answers
12 views

React-native - How to keep fetch file uploading when terminate app(closing by home button) or change other app?

I am making camera ios app(just after take a photo and upload) by using react-native. However, I have a one problem. When I upload a photo directly to server, (most of photo size is over 1MB~2MB) this ...
0
votes
1answer
12 views

XCode 10 is crashing when making connection of views to the controller

My XCode has suddenly started crashing when I am trying to make storyboard connection to the view class. I am control dragging the view from storyboard to the view class and as soon as as the pointer ...
0
votes
0answers
6 views

Any Way to requesting to access motion and orientation with JavaScript in iOS Safari

Unfortunately Safari disables Motion and Orientation access by default in Settings > Safari > Privacy & Security > Motion & Orientation Access. So what I'm trying to figure out is whether it'...
0
votes
0answers
12 views

Failed to write video with AVAssetWriter

I am using AVAssetWriter to save screen recoding to mp4 (Withd H.264 video and aac audio encoding). Everything works perfectly as expected but some users complained about the 0KB video size issue, ...
0
votes
0answers
11 views

Add extra tracking parameters to trackAppLaunch in Segment for iOS

There are a few methods that are being called in an app I'm maintaining right now and marketing asked me to track at every app launch if the user is logged in with "Application Opened". If I'm not ...
0
votes
0answers
8 views

cmake with ios framework

I developing an ios framework which using cmake, i write below scripts in CMakeLists.txt so that i can use command cmake to produce .xcodeproj directory so that i can use it in xcode. set(LIB_NAME ...
1
vote
0answers
14 views

Firebase Cloud Messaging nodejs SDK cannot reach iOS app

I have a Firebase project with Cloud Messaging enabled. I'm using nodejs SDK with a service account to call admin.initializeApp() and so far I'm able to reach desktop Chrome, android Chrome, and the ...
0
votes
0answers
12 views

iOS ARCore - How to connect Android & iOS devices with ARCore and send and recive AR Objects?

I have explore an ARCore demo provided by Google which allows transferring the AR objects between Android & iOS devices. How to achieve such things on iOS. I have tried with Google's ARCore ...
-2
votes
0answers
29 views

How would I make stratego in swift? I don't know where to start

I want to make a game very similar to stratego in swift using Xcode. I want you to be able to play on separate devices against each other in close proximity. I have a feeling I would need to learn ...
0
votes
0answers
5 views

How use multiple bundle ID's with iOS Storekit

My project has the following bundle id's(all fixed by configuration): es.myproject.dev es.myproject.pre es.myproject.prod But only es.myproject.prod is returning the list of subscriptions from ...
1
vote
1answer
14 views

UICollectionView Horizontal align scroll first cell center alignment not exactly placing center position very first time using Swift

My scenario, I am trying to Implement UICollectionView horizontal scrollview first and last cell center alignment based on selection. Here, Very first time CollectionViewCell first cell not showing ...
0
votes
0answers
19 views

Swift - When receiving a silent notification decide whether to show an alert or not

I need your help, I wanted to ask you 3 simple questions, where one goes in consequence of the other. Basically I want to limit to users the number of notifications they receive. Since it is a group ...
-3
votes
0answers
29 views

How can I retrieve the UDID on iOS swift? [duplicate]

I'm developing an iOS application that needs a unique device ID, so I'm using UIDevice.current.identifierForVendor?.UuidString I have the problem that after uninstalling and reinstalling the app I ...
0
votes
0answers
20 views

Is it possible to run transpiled JS code (from Typescript) in place of TS files with React Native?

Recently we have been working on converting our React Native application from using Javascript to Typescript. I have our app working with Typescript just fine. However, I have been asked to determine ...
0
votes
0answers
9 views

Swift iOS: dyld: dyld_sim cannot be loaded in a restricted process

I'm making an iOS app for jailbroken devices running iOS 12 or newer. I need my app to run a command line command, so to achieve that I use a custom Objective-C header file which creates the object ...
0
votes
2answers
30 views

Objectiv-C macro replacement in Swift?

I have been using Objective-C for years and I am now making my first steps using Swift. In my existing projects I have been using quite a few different macros like #define IS_IPAD ([[UIDevice ...
-1
votes
0answers
47 views

How do I solve Thread 1: Fatal error: Index out of range

I get Json and pass it into a string array then pass the string array to a cell in a table but I keep get Thread 1: Fatal error: Index out of range and my App crashes. var notificationsData = [...
0
votes
0answers
7 views

What could prevent a keyboard extension from going through its basic life-cycle?

I have a custom keyboard extension and container app which I wrote. I am using the keyboard extension in the host app (iNotes). I bring up iNotes and my custom keyboard, press the home button (...
0
votes
0answers
5 views

PhaseScriptExecution failed with a nonzero exit code. lots of errors with “folly” in prefix and .h or .cpp in suffix in xcode

I am working on a react-native project that usually builds fine with xcode. I had an error that I couldn't fix so I thought i will just delete my node_modules and yarn or npm install again. Now that I ...
1
vote
0answers
25 views

How to get user's current location coordinates using MapKit and get the address of those coordinates [Swift]

Im currently getting the address of the user using Search Field Location AutoComplete and once the user selects the location I show the location annotation too. I Now also want to include locate me ...
1
vote
1answer
18 views

plotting sine and cosine with charts have kinks

I use this changed code from another user to plot sine and cosine iOS Charts, wavy lines import UIKit import Charts class ViewController: UIViewController, ChartViewDelegate{ var lineChartView:...
2
votes
1answer
44 views

How to disable UIButton by clicking another UIButton on same UITableViewCell

In a cell there are three buttons: Family, Friend, Accept. Initially Accept button is disabled and rest are enabled. What I want to do is when a user clicks on Family- Accept button should be enabled ...
0
votes
0answers
21 views

Generating unsigned IPA

We have an enterprise client and we just developed an application for them. They ask us an unsigned IPA (to sign and publish the app), but as far as we know, the unsigned IPA generation is not ...
1
vote
0answers
24 views

Opening a view controller from a mail file but not the whole app

Is there a way to open an view controller but not the whole app when I select it from a file? Every time I select the file I open the whole app and I cannot dismiss it. Wunderlist does it. This it ...
0
votes
0answers
16 views

Drawing a route on GMSMapsView won't let the viewController be deallocated. How to fix the memory leak narrowed down to this code snippet?

I have a GMSMapsView in my iOS application and use a navigation controller to show some trip information to drivers multiple times. The application started crashing randomly and I've debugged using ...
0
votes
0answers
23 views

Problem in send flutter actions to receive in swift

I'm trying send some action in flutter, clicked by a button or another things, and receive in swift to get this action and do other action inside swift I'm using Swift 5 in the background application,...
0
votes
2answers
27 views

change hight of the tableView cell does not work

hello guys now I have tableView cell should have dynamic hight , this cell have 3 labels , I have added them in to stack and I added all requirements to let tableViewCell be dynamic hight 1- The ...
-1
votes
0answers
31 views

How to pass back and Update data using realm between VC in swift

Hi everyone this my first using this website and in first I have to say I'm a beginner in Swift and also sorry for my bad english. Well, I’m trying to pass data back from the TextView of my View ...
0
votes
1answer
12 views

How to set up Jenkins to build React Native iOS app, that uses Carthage?

I am setting Jenkins (on Mac) to build React Native mobile app. For iOS it uses Carthage (I have few experience with it). Carthage is installed on my machine, and I can build app from terminal with "...
0
votes
1answer
27 views

Group results of filtering by date without dumping everything to memory

I have a list of Documents that are generated on multiple dates. I need to show a UITableView with the documents and each section has to be a different day. I'm going to have several thousands of ...
0
votes
1answer
22 views

iOS Swift5 will using NSMutableDictionary with locks instead of var [:] ensure thread safety?

I'm debugging a swift class that I have inherited in a project. There was an attempt to create a thread safe dictionary using a swift dictionary with a semaphore. The code fails in multi threaded ...
0
votes
1answer
19 views

Filehandle class loading whole file into memory

I am trying to read data from big files sequentially. Since the files can be bigger than the available memory, I don't want the file to be completely loaded into memory. class RecordImporter { ...
0
votes
0answers
36 views

Delete Rows in TableViewController

I need to expand and collapse rows.When header clicked, calls method handleExpandClose.In order to delete rows, I have this: public void handleExpandClose() { var paths = new NSIndexPath[...
0
votes
1answer
13 views

MPMediaPickerControllerDelegate Permission Check Swift

I have the following code in my project to select audio files through 'MPMediaPickerControllerDelegate'. When run the below code, for the first time the user is prompted to grant permission. If the ...
-1
votes
0answers
15 views

How to convert Tizen Wear App to Apple WearOS and Android Wear?

I have an App on Galaxy Wear / Tizen Web App. What would be the "best" way to get it published on Apple Watch and Android WearOS? The is the brute force, Implement it from start on the two OSes. ...
0
votes
0answers
14 views

Expo - increase location accuracy with Geofence

I could really use some help improving the accuracy of the Geofencing feature. If you look at the following screenshots you can see my location and the location of circle and marker which share the ...
1
vote
2answers
39 views

How to fix an image height inside UICollectionViewCell?

enter image description hereI have a UIImageView inside a UIView inside collection view cell but the image getting bigger in its height than its superview even if I did all the constraints (top, ...
1
vote
0answers
19 views

Problems building through bitrise; more problems building through xcode

I've somehow found myself trying to build an app through bitrise to deploy to testflight. I'm a total novice at all of this, so apologies for what probably seems stupid. Bitrise manages to build ...
-1
votes
0answers
5 views

How to handle safe area mode for iphone x with ionic3 in hybrid app

I'm trying to handle safe area mode for iphone X, but unable to resolve it. I have used some css to resolved this issue, but couldn't. 1-Solution <meta name="viewport" viewport-fit=cover content="...