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
4 views

why the address of a number's pointer increase by one byte, not eight bytes in iOS with 64-bit architecture?

the code for test: NSNumber *n1 = @1; NSNumber *n2 = @2; NSNumber *n3 = @3; NSLog(@"\n- %p\n - %p\n - %p\n", &n1, &n2, &n3); the address number's pointer: // pointer ...
-1
votes
0answers
6 views

Completion handler not working as expected

I have function PlayerData that queries data from my Firebase database and populates an array. func PlayerData(teamName: String, playerNameArray: [String], completion: @escaping ([Player]) -> ...
0
votes
0answers
6 views

iOS App - Is it possible to add widget to Today View from the app itself?

So when we add widgets to Today View, we usually swipe to the left, press edit, and add the widget for the desired application. Is it possible to do that from inside the app itself? Thank you. Ps. I ...
0
votes
0answers
11 views

Things to know about Flutter

I am new to Flutter and i am trying to do my school project(create an app) using Flutter. Thus I installed Flutter in my android studio(windows). I used to create app for android but not familiar with ...
0
votes
0answers
3 views

The input /output type are both multiArray in CoreML, how to make it display?

I have a ML application. The file of mlmodel offered the input/output are both MultiArray. The requirement is based on the emoji to display the label of emoji. How to do it?
0
votes
1answer
14 views

How To Set Up A Profile Screen

I am trying to set up a profile screen after my user sign up. I need the username and profile image from Firebase Database that my user signed up with to show up on my profile screen as of right now ...
0
votes
0answers
12 views

On mobile, is it possible to save a video without stopping the recording?

I would like to have my app record and upload chunks to the server while recording is in progress for processing so that by the time video is completed, it is already available to the user. This repo ...
0
votes
0answers
17 views

Passing unicode emoji from REST API to Android and iOS consumers

What is the most suitable unicode format as string to pass from my REST API to Android and iOS consumers making sure the emoji will display with the least amount of effort by the app developers? This ...
0
votes
0answers
9 views

Flutter errors while building ios release

I have developed an app working with firebase and google map. App works fine with ios emulator and device but giving errors when building release. I also have cleaned and rebuilt project and pod also ...
-1
votes
1answer
18 views

Comparing previous Date() to today

The Date() value has lots of information in it. I want to see if a stored date value is a day before the current Date() value. I could easily get the Calendar.current.component(.day) of each date ...
-1
votes
1answer
7 views

UIViewPropertyAnimator crashes on dealloc after calling finishAnimation(at:)

When using UIViewPropertyAnimator and calling finishAnimation(at:) after stopAnimation(false): You either get a crash log of: - [UIViewPropertyAnimator dealloc] Or if you catch the assertion in a ...
-4
votes
0answers
12 views

How to use a UIViewController in a SwiftUI View

I am very new to Swift and I am trying to incorporate a View Controller into my SwiftUI app, however because the View Controller does not conform to View I am unable to use the UIViewController. Here ...
0
votes
0answers
12 views

How to delete a section and a row from a TableView with Realm and Swift?

ableView. I'm currently working on this gym app and I'm hoping to get a little bit of guidance here. Basically what I want is to be able to swipe the cell and delete the row and the section ...
0
votes
1answer
11 views

Is there a simple way to temporarily disable the physics bodies for a sprite in Swift? (SpriteKit)

I'm making a maze app, that generates a new maze after one is completed. Obviously, I can turn the walls (each having their own physics and sprite stored in their spot on an array) invisible by doing ...
0
votes
0answers
4 views

Vision / VNBarcodeObservation - displaying visual highlight/overlay on barcodes

I'm trying to use the Vision framework for detecting barcodes and displaying an overlay/highlight on the video preview (detection is being done on live video from the rear camera of an iPad Pro). I'm ...
0
votes
0answers
9 views

How to share one FACE/Touch ID for two keychain elements

I am using the apple SecAccessControlCreateWithFlags implementation as followed: let access = SecAccessControlCreateWithFlags(nil, // Use the default allocator. ...
1
vote
0answers
8 views

Unable to build iOS from command line after creating the platforms directory, requires opening xcode manually

The short version If I don't currently have a platforms/ios folder, and I run: cordova platform add ios ionic cordova build ios --buildConfig=build-scripts/uat/ios-build.json --device --release I ...
0
votes
0answers
9 views

Swift App Termination removes Kingfisher Disk Cache

i am having trouble with my kingfisher cache. The scenario: I save images from URL to a custom kingfisher cache. When I read the given URL, it tells me that it first fetches the image from memory ...
0
votes
0answers
21 views

Xcode 11.2 crashes when trying to open a storyboard?

Once creating a new Game template for iOS 13 (the one with the spaceship) and pressing CMD+B to build I get the error below. The same project for macOS builds and runs correctly. No change to the ...
0
votes
0answers
9 views

Get X-WP-Total headers with Swift

In Wordpress REST API Hanbdook is written what: To determine how many pages of data are available, the API returns two header fields with every paginated response: X-WP-Total: the total ...
0
votes
1answer
25 views

How to call a UI function on a UICollectionViewCell once it has become visible

I have a lovely UICollectionView living in a ViewController, with a custom class for the UICollectionViewCell. In each cell is an ImageView that uses a library to run an animated gif. The ...
-1
votes
1answer
20 views

How to set up a user profile

I declared a constant to make my userID readable but Xcode is forcing me to unwrap userID to make my code valid how do I fix this error Force-unwrap using '!' to abort execution if the optional ...
-3
votes
0answers
26 views

How do I create a UIImageView subclass that is compatible with @IBDesiginable? [closed]

So I've got an image view with some specific behaviors and data points, and at one point it seemed like an obvious place for a subclassed UIImageView. (At this point, I think I should have ...
0
votes
1answer
21 views

how to put text in a swiper with flutter?

im been trying for a while putting text inside a swiper widget on flutter, but i cannot, im been searching but all i find is just with images. this is my code Container( padding: EdgeInsets.only(...
0
votes
0answers
11 views

Display the selected rows in a table view in another screen swift [closed]

I created a sqlite database and added a table payment with invoice , date currency and amount as columns and i retrieved the data to 4 labels in a custom table view cell in my first view controller . ...
0
votes
0answers
18 views

UITextField is not editable, has only Touch Events, no Editing Events

I have a UITextField above a Google Maps View (GMSView). When I tap on the Textfield it does not become the first responder, neither do any of the delegate or action events work (Delegate Event like ...
0
votes
1answer
37 views

What is the easiest way to access deeply nested json data using iOS and Swift?

I am using Swift 5.1 and I have a deeply nested json file and I am just interested in accessing a few elements within the json file and ignore the rest of the data. For instance, I just want "...
0
votes
0answers
9 views

UISegmented Control Inner view should call API after view has been shown

I have a 'UISegmentedControl' which is programatically added in the view controller named SegmentControllForRides. (i added UISegmentedControl programatically because segment items will be changed ...
0
votes
0answers
8 views

Is it possible to export an XCFramework which itself embeds an other XCFramework?

The last WWDC introduced XCFramework which is an easy way to distribute an universal framework. I've been using it and it works great. Now, let's say I have an app "A", which embeds a framework "B" (...
0
votes
0answers
11 views

Metal performance on iPhone XR

I have a kernel Metal function which basically looks like this: struct Matrix { half arr[562500]; //enough to store 750x750 matrix }; struct Output { half arr[12288]; }; kernel void ...
0
votes
1answer
34 views

Why use “weak” keyword in Swift when declaring Views in a ViewController for iOS

What is the difference between the following methods of setting up views in a ViewController force-unwrapped: class VC: UIViewController() { var customView: UIView! override func ...
0
votes
0answers
12 views

How to use a apache 2.0 licensed library

i am using library which is under apache 2.0 license and i don't know what should i do. I install it using cocoa pods on my IOS project and now what should I do. I read parts of the license and i am ...
0
votes
0answers
7 views

Change chevron color by replacing it in modifyCell with new sf symbol chevron.right

Id like to use the system image chevron.right for my accessory icon and replace what is currently there so I can control the color. Right now with iOS 13+ the tint color is not updating like the text ...
1
vote
1answer
20 views

ios UITableview multiple select options on single cell?

Has anyone found a really good way to handle this case in UI? We have a tableview with a list of items (long list). Each item is a row and it can be either "selected" or it can be drilled into to ...
0
votes
1answer
21 views

Sprite physics showing up but not visually showing up in Swift (SpriteKit)

I set up the sprite's physics body, zPosition, color, size, etc., but it won't appear visually. (It has the highest zPosition of my sprites, and YES I did import SpriteKit) let wall = SKSpriteNode() ...
-2
votes
0answers
10 views

Can I use the San Francisco font to design the interface of a commercial program for iOs? [closed]

Commercial program for iOs is developed in Qt/qml/c++. Can I use the San Francisco font? If the use is valid, which FontFamily should be specified for the components (or the entire program)?
0
votes
1answer
24 views

save current time from date picker for show showing local notifications as a reminder

In my app i have a screen in which there is a datepicker whose datepicker mode i have set to time. Now when i navigate to this screen, there is also a switch for on and off of setting daily reminders. ...
0
votes
0answers
14 views

Can UI elements be cached and ignore code instructions?

I need to show / hide the mobile icon (button) depending on the data in the model. To display models to the user, I use the UICollectionView. A cell is a custom class that contains a model on the ...
0
votes
0answers
7 views

How to call Ionic methods from iOS cordova plugin

Need to invoke the ionic method when a call back is fired from iOS native. Is there any use case where we can accomplish this task in ionic.
-1
votes
0answers
11 views

prevent terminate by system ios when idle on background state

So, I'm righ now try to make online streaming using vlcMediaPlayer library. Right now I 'm facing the problem, it happend when the music is paused. If I set an auto lock system will terminate my app ...
0
votes
0answers
7 views

Appium+Java iOS check if device supports the “Touch ID” or “Face ID”

How can I get whether current iOS device supports faceId_supported or touchId_supported if(faceId_supported) { driver.executeScript("mobile:sendBiometricMatch", ImmutableMap.of("type", "faceId", "...
1
vote
0answers
17 views

Flutter App - ERROR, Xcode **BUILD FAILED**

Here's my terminal output: I have tried to update Xcode but i still get the same error. When i run flutter -doctor v it passes all cases, and theres a check-mark in every section. I have tried to ...
0
votes
0answers
24 views

How to build a table view with collapsible sections?

I made a table view but I only want that the last section collapse when I touch it. The problem here is that sometimes other sections collapse too. What is wrong? func tableView(_ tableView: ...
0
votes
0answers
7 views

Advice configuring my Django Push Notifications for IOS

I am currently trying to configure some notifications to be sent to my ios app. I currently run a django webapp that I would like sending out push notifications. There have been a few questions as I ...
2
votes
2answers
38 views

What is a development pod?

I am new to CocoaPod and IOS in general, I am trying to use a framework I built locally in my podfile as follows: # Pods for Example pod 'OsonWidget', :path => "../OsonWidget/" when I run a pod ...
0
votes
0answers
4 views

Firebase dynamic link not opening correct app when multiple flavors are installed on iOS

We developed a flutter app for Android and iOS, with different flavors: dev, test and prod, so we have 6 apps in total. To on-board the user, we send a firebase dynamic link via Email (with a deep ...
0
votes
0answers
8 views

RTCFileLogger: How to decode log file?

If you use RTCFileLogger or RTCPeerConnection's startRtcEventLogWithFilePath they both log data that seems to be encoded in some format that is not human readable:   Z "...
0
votes
1answer
20 views

'FBSDKAppEvents.h' file not found when using cocoapods for facebookSDK

I am trying to update FacebookSDK using cocoapods in my RN app and i keep getting error: 'FBSDKAppEvents.h' file not found. at file FBSDKCoreKit.h My pod file is target 'App' do ...
0
votes
1answer
16 views

Submit new app build when previous has rejected status and appeal is still open

What happens if I have an app in review with solution A (rejected but an appeal is in progress for a week already) and I will send a new build with solution B to review? Does it automatically stop the ...
0
votes
0answers
34 views

iOS UIView becomes slower after suspend/resume

I noticed a strange thing: UIView becomes twice slower in terms of performing UIImage.drawAt after suspend/resume. I see 2x drop in FPS both on simulator and devices on iOS 9-13 after pressing Home ...