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

UIViewController containment notifications

I have a doubt about UIViewController containment. For simplicity, I made a sample project and defined SecondViewController class. class SecondViewController: UIViewController { override func ...
0
votes
0answers
5 views

Swift URLSession.shared.dataTask GET Request -1001 returns timeout

Sending a POST request to our NGINX Server works good with URLRequest and URLSession.shared.dataTask. I can login to my app but when I try a GET request my server has no log that the request reached ...
0
votes
0answers
2 views

Force open AR Quicklook links through Safari mobile browser

People who have been keeping up with the new ARKit features will know that AR QuickLook is a new feature introduced with ARKit 2.0 that lets you try AR features right inside your browser instead of ...
-2
votes
3answers
24 views

Inout functions vs functions that return the passed in parameter

In Swift, when is it preferable to use inout functions vs functions that modify a single parameter and return that modified parameter? It's probably a case by case scenario and I feel myself that ...
-2
votes
1answer
12 views

How can I get this font height problem fixed?

Image of app Unable to manage font "HEIGHT" as per the button. managed to scale font size as per the width but button height doesn't fix to font.
0
votes
0answers
8 views

Swift - Why should I use viewDidAppear rather than viewWillAppear when redirect user if the user logged in already

I'm making twitter client app, using TwitterKit. The initial VC is loginVC with login button. After login, it presents tableviewVC that shows list of tweets. I want to redirect the user to ...
0
votes
2answers
13 views

rescaling the whole storyboard

i have to edit an app that until now only ran on an iphone 7. Sadly the programmer didn't use constraints, but instead always set x,y,width and height of each view, label and so on. naturally, i f i ...
-3
votes
0answers
18 views

Unique function instance swift

I would like to know how to constrains a function to have only one instance at the same time. For example, if I call a function at any given time and I call it later, how can I make the old function'...
-1
votes
1answer
19 views

How to hide/show UITextView in iOS Swift4

textView.isHidden = true //false I'm trying to hide/show UITextView by setting isHidden but it doesn't work properly. It does hide the UITextView but it still shows an area where the previous content ...
0
votes
1answer
8 views

Purpose of `region` settings in ios for DateFormatters

I am aware that DateFormatters use both language and region to produce the required strings/content. And especially reading the documentation it seems that i understood correctly how they are supposed ...
1
vote
1answer
15 views

Objective-C framework used in Swift - ambiguous use of method error

I have an Objective-C framework where I've deprecated a method and replaced it with another one: + (void)methodName:(BOOL)value; + (void)MethodName:(BOOL)value __attribute__((deprecated("from version ...
1
vote
2answers
19 views

Unable to edit the reusable collection view cell

I am trying something like this: let indexPath = IndexPath(item: 0, section: 0) let cell = collectionView.cellForItem(at: indexPath) as! PostAttachmentCellView cell.backgroundImage.image = file as? ...
-4
votes
0answers
14 views

Disable search once user starts selecting

Is there a way to disable the search bar once the user starts selecting items from the list? The user would select the items from the list, click on the add, then the search bar will enable again.
-4
votes
0answers
15 views

how to send json to server using swift4? [on hold]

I want send a json to server let user: JSON = ["req" : "login", "id": user_ID_encrypted, "pw": user_Password_encrypted] just want send one of three to server ( ex : 192.168.0.3:9000 ) I don't know ...
0
votes
0answers
4 views

PKPass file generated in not opening in iOS devices

Is anyone using PKFileBasedSigningUtil for generating the Apple pkpass file? PKSigningInformation pkSigningInformation = new PKSigningInformationUtil()....
0
votes
0answers
12 views

Xcode 10, iOS: Test build failed even when all Tests have passed

All my unit tests have passed but the test build has failed. In the logs I am getting. MyApp.app (35810) encountered an error (Early unexpected exit, operation never finished bootstrapping - no ...
-1
votes
1answer
13 views

Overlapping views in Storyboard

I am trying to design two UIViews in storyboard which overlap and are part of same UIviewController. Only one of them is visible at a time so I set alpha to be 0 or 1 in the code depending upon which ...
0
votes
0answers
5 views

Ionic filetransfer.download does not return in build

I am developing an Ionic app for ios that includes a call to download a series of files to device storage. I am using FileTransfer.download which works via Ionic devapp but in the actual build it does ...
0
votes
0answers
30 views

Calculate around transformed UIView on iOS

I've made a simple code to create a border inside a view: let dashedBorder = CAShapeLayer() dashedBorder.strokeColor = UIColor.black.cgColor dashedBorder.lineDashPattern = [2, 2] ...
0
votes
0answers
10 views

UIWebView not caching remote images

We have a Phonegap application that uses remotely served images. The images are served with a Cache-Control header: 'Cache-Control': 'max-age=31536000'. Prior to iOS 12, the images were fetched ...
1
vote
0answers
27 views

NSAttributed string document type issue

I have word files (.docx) having different type of language in each (e.g English, Urdu, Arabic etc) i want to extract that data as string but i can't access the officeOpenXML in attributed string ...
0
votes
0answers
11 views

Codename one Build error, unable to build in IOS app

I have a codename one app that is working normally in android and IOS. The 2nd app, works normally in android build, but always displays an error in Ios build, after sending to server. I am removing ...
1
vote
1answer
43 views

How do I decode a JSON using codable with a mutating key?

I need to decode a JSON formatted like this: { "rates": { "btc": { "name": "Bitcoin", "unit": "Ƀ", "value": 0, "type": "crypto" }, "eth": { "name": "Ether", "unit": "Ξ", "value": 29....
0
votes
0answers
6 views

No such module 'SwiftyJSON' for ios 12 [duplicate]

enter image description here I encountered an error "No such module 'SwiftyJSON'" for ios 12 How to solve this issue? Thank
-1
votes
1answer
23 views

App runs well at all versions of iphone but on iphone X Thread 1: Signal sigabrt error

It indicates that part of code [AppDelegate _initialize]; return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); That is log : libc++abi.dylib: terminating with ...
-3
votes
0answers
14 views

How I can implement DLNA/UpNp server in iOS to stream local music on Speaker(airplay enabled)

I want to use DLNA/UPnP for streaming ios (using swift/objective C) local(device library) music to the speaker that can play the content. Is there any specific library or demo app with which I can ...
-1
votes
0answers
20 views

Save complex JSON to Core Data in Swift

I want to save the JSON Result from web service to Core data, following is the code for JSON parsing. if let jsonResult = try JSONSerialization.jsonObject(with: JSONData!, options: [....
0
votes
0answers
17 views

How to make our own cloud service provider (file provider) like google drive, dropbox etc..?

I want to make my ios mobile app as a cloud service provider like google drive , dropbox, Quick Support ect.. which is displaying on my iphone Files System Apps under the location Tabs as other cloud ...
1
vote
1answer
19 views

Multi-select cell in UITableView in sequence

I have a UITableView with numerous cells. I'm able to multi select cells but what I want is that user only can select multiple cells in sequence. ie if user has selected 2nd row then he/she only can ...
-1
votes
0answers
9 views

apple give 4.2.2 Minimum Functionality error

I'm in deep problem and can't get solution from anywhere help me..! our app https://play.google.com/store/apps/details?id=com.idea_factory.idea_factory this app is live on app store. * I'm not ...
0
votes
0answers
18 views

1080p resolution is not coming for iOS devices using getUserMedia

I am recording video by using getUserMedia API. I am passing below constraints to getUserMedia API in-order to record video. constraints = { video: { width: { min: 1920, ideal: 1920 }, ...
1
vote
0answers
17 views

In iOS, how can I distinguish a Haptic Touch from a long press?

Apple's recent iPhone XR announcement replaces 3D Touch with Haptic Touch, letting you access 3D Touch features by just long-pressing a view. I'm curious how that will interact with existing ...
0
votes
0answers
22 views

Objective C code , showing footer view cell in table view , but hide when keyboard resign

I have a table view with footer view it works fine but when i click on footer view text field and then dismissed keyboard ,footer view gets hide shown in fig. I'am using this code for showing footer ...
0
votes
1answer
25 views

XCode 10 Crashlytics Installation

I am having difficulty understanding this step on installing firebase Crashyltics in my app: Xcode 10 only: Add your app's built Info.plist location to the Build Phase's Input Files field: $(...
1
vote
0answers
14 views

Update UICollectionView header height based on headers UITextview content

I have a UICollectionViewController header cell that displays information for a business. A business may or may not have a description. In my header cell I set a business object, and then set all ...
0
votes
1answer
29 views

swift firebase like button

In tableViewCell I have likeButton and unlikeButton. What I want is when I press the likeButton - save data from cell to firebase and when unlike - delete But I have 2 problems: 1-- when I click ...
-1
votes
2answers
41 views

viewWillAppear not getting called on UIPageViewController child

So I have UIPageViewController and on it 2 UIViewControllers. I want to know when each of them is being shown, but viewWillAppear or didAppear are not called when they are switched. Does anyone have ...
0
votes
0answers
14 views

Push Notification pem file not working after conversion

The server is throwing error on sending push using pem file, but working with p12 file. I'm facing this after my update to mojave MacOS. I tried creating pem using Terminal with command, openssl ...
1
vote
1answer
30 views

How to fetch all albums with images from iPhone without taking time in Swift?

I tried to fetch all images from album. It fetches all images with their URL's and image data, but it does not fetch images directly from given URL path, So I need to download images in Document ...
0
votes
1answer
56 views

How to extract day, month and year (dd-MM-yyyy) from Date (2018-09-28 09:42:00 +0000 ) without time in Date format - iOS swift?

I want to get 2018-09-28 from 2018-09-28 09:42:00 +0000 in Date format. I can extract the same in string format but I want to get this in Date format. Here is my sample code. let date = Date(...
0
votes
0answers
19 views

CoreBluetooth, iOS

I'm trying to get data from spesific bluetooth device in JSON format. As I understood CoreBluetooth in didUpdateValueFor CBCharacteristic delegate send 20 bytes massage and you can work with it. The ...
0
votes
1answer
18 views

Setting BLE connection parameters in movesense application

I am wondering if there is a way to set the BLE connection parameters in my custom firmware and also for the logbook service. As I would like to transfer data as fast as possible from the device to a ...
2
votes
1answer
21 views

Flutter - SQflite '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, dynamic>'

I am trying to save some data with flutter inside the sqflite database, but I am still getting an error that says: [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception: ...
0
votes
3answers
32 views

second object of each pair must be non-nil. Or, did you forget to nil-terminate your parameter list?' when adding row count

I'm getting exception 'NSInvalidArgumentException', reason: '+[NSDictionary dictionaryWithObjectsAndKeys:]: second object of each pair must be non-nil. Or, did you forget to nil-terminate your ...
0
votes
0answers
12 views

I have some customisation problems in AppPresser for WordPress

I am using AppPresser plugin to convert WordPress site into iOS and Android applications. I could see that I was unable to do the following things: Customize the ActionBar (Android) to add more ...
0
votes
0answers
40 views

Implementing an HTTP service within a mobile app

I'm working on a mobile app for iOS/Android/windows and I'm looking for a way to implement an HTTP service within that app. Basic workflow considerations: The HTTP service would be used within a ...
-1
votes
2answers
60 views

How to use generic value in CodingKeys enum (Codable Protocol) [duplicate]

Compiler complains: "Raw value for enum case must be a literal" In the struct/class we can use generic value but how to use generic in enum. The below is the server response that I want to make a ...
-1
votes
0answers
26 views

Wrong facebook user id

I've to retrieve the facebook user id in order to send it to the backend. So I use this function: FBSDKAccessToken.current().userID But the id returned is wrong and if I try to put it in a url like: ...
0
votes
1answer
29 views

Integrate KML on offline Google Map iOS

I want to create kml file programmatically in iOS Swift4. I surfed a lot regarding offline Google Maps & saving data in kml file, but I didn't found any relevant material regarding this. In short, ...
-3
votes
0answers
10 views

Music App With Five Basic Range and Scale and play it as tone [on hold]

Have to create a music app with five basic range (Bass, Baritone, Tenor, Alto, Mezzo-Soprano, Soprano) and scale (Blues, Five-Tone, Octave etc.) selection and play it as tone in iOS. What libraries ...