Newest ios Questions

Q&A for professional and enthusiast programmers

ios app goes background when launched in ios9.3 after killed. but works fine in ios 10

Jan 23 09:34:06 ipad4 SpringBoard[46] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Jan 23 09:34:06 ipad4 SpringBoard[46] <Error>: SecTrustEvaluate [leaf ...

UIScrollView xcode 8 swift 3

This is my first question and I am brand new to coding. I'm creating an app and one of the pages has a form for a user to fill out with two labels, two textfields, a switch and a "send" button. For ...

Cordova iOS app

I'm trying to create a Cordova app for learning purposes to deploy to my iPhone 5 for personal testing. For the life of me however I can't seem to understand what I have to do. I have Xcode installed ...

Can I create an app that record the music that my iPhone is currently playing? [on hold]

I try to learn Swift and I was wondering if it was possible to create an app that records the sound/music that my iPhone is currently playing. For instance, I'm listening to music, I launch my new app ...

How to save mp3 files inside my app in iOS

How to save mp3 files inside my own app?I'm building a music app.I allow user to download music from resource, but I don't know how to save it.I wan't to focus that the music will be stored inside ...

Can't see image in UITableView Cell

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.subtitle, ...

Font style in Whatsapp [on hold]

How whatsapp changes their font style while sending message in iOS. If there is any sdk or library for that please share with us. I have tried some libraries but these libraries have some problem.

Show a View on First Launch Only - Swift 3

I am implementing a Terms & Conditions view into my app and the user has to accept them to proceed, then when they do accept them, they no longer have to go through the Terms & Conditions view....

Can I get progress while uploading/downloading data from Firebase

I need to show progress while uploading/downloading data from Firebase database. Can I get it?. I saw in Firebase storage but I didn't saw in Firebase database.

Add custom icon to ShurtCutItem in Swift

Good evening! I've searched a lot but don't find a solution for my problem... let test = UIMutableApplicationShortcutItem( type: "testtype", localizedTitle: "Title", ...

IOS/Objective-C: Get ActivityViewController to recognize vcard

To attach a VCard to an email/sms/social media post etc. through a Shared Sheet and ActivityViewController there seem to be two approaches. One is to actually create a file and save it to the ...

Xcode: Signing says “No accounts found”, but Accounts says it exists

I am a Windows user trying to sign an iOS app - first for testing, later on I will have to sign for release into the app store. As always, I am stuck somewhere. What I try: I open the *.xcodeproj ...

Can your iOS app be killed by the OS for high energy impact?

I've got a difficult to fix bug. It's an exception bad access, that won't throw an all exception breakpoint. No stack trace is given. Turning zombies on isn't trigger any zombies, etc. While memory ...

Quickblox tap message with picture [Swift]

I am implemented QuickBlox chat module with attachments. I want to take it a step ahead by adding a tap gesture. Whenever an attachment is send; I want to add a tapGesture to it so that it can open up ...

How do I save an integer once in Swift?

Im making a game and when the user collects an orb I want it to save in an lael but only once. I got it to save the integer in a label but need help with not letting the the orb be saved more than ...

taskWillPerformHTTPRedirection never called

I'm trying to get the redirect link from my post request but after upgraded to alamofire 4.3.0 my delegate.taskWillPerformHTTPRedirection has never called. What I'm doing wrong? I'm calling this way: ...

Getting some values as <null> in iOS but working fine in Postman and Android

I'm trying to hit the following URL ( https://api.cinepass.de/v4/cinemas/?countries=IN&apikey=oMOLF6O1HfCt8XikVP4vnZ2V2EWiX8rn ) using GET method in iOS (Objective-c) and getting the following ...

Outlets cannot be connected to repeating content in CollectionView Cells

When I am trying to connect a UILabel in a UICollectionViewCell that has been declared as @property (nonatomic, weak) IBOutlet UILabel *Title; It shows that: Outlet cannot be connected to ...

Manage memory with setImageWithURL

I have a bunches of cell that contain UIImageView in UICollectionView and i've using setImageWithURL to load image in each cell, but if it load too much (i.e 100 cell) my app become crashing. Its ...

MBProgressHUD/MBProgressHUD.h' file not found

I only get this error when I build on my device (iPhone 6 and 5s). It popped up randomly today when I pod installed Firebase/Core. I've deleted it since. However, it works fine on the simulator. Can ...

Use CNPhoneNumber into UIPasteboard

I want to take the number from any contact that the user pick, then copy it inside pasteboard, so here is my code: import Contacts import ContactsUI the in the button: @IBAction func callMe(_ ...

Swift 3: Expression type [UIImage] is ambiguous without more context

I try to create new array of UIImage objects: var images = [UIImage](repeating: nil, count: 10) for i in 0..<10 { images[i] = ... } But I got this error (at first row): Expression ...

AES encrypt in Swift similar to Android

I need to perform plain AES encryption without any padding and without mentioning cipher mode in Swift. Can someone throw some lights on it? In Android, it is possible to import the default ...

Swift 3 optional string to int

I am using Vapor for Swift backend. Following is the code i am working with. drop.post("postTodo") { request in var jsonContent: JSON? if let contentType = request.headers["Content-Type"], ...

Understanding the fizz buzz in Objective C

Hi I am trying to solve a Fizz Buzz Test (with a twist) in Objective C that lists numbers (each on a new line) from 1 to 60 in sequence, except that when the number is divisible by 6 the program ...

How do I access my azure database data from my xamarin mobile app?

I'm new to mobile app development, I've been tasked with making an app and so I'm now starting my voyage of discovery. I am coding the app in Visual Studio 2015 with Xamarin using a Mac Book Pro as ...

Subview visible but frame outside superview frame

I have a parent VC that loads a child VC inside it. Code in parent VC is as follows: self.draggerViewController = [[DraggerViewController alloc] initWithSuperView:self.view]; And the code of the ...

Simple In-App Purchase Request Swift 3

I am currently finishing up a mobile game for iOS that allows customization of the main character being used. To customize the character, users can select several different load-outs to purchase using ...

ios - could not post data to php page

I want to post some data to my php page, I've tested two ways to do so but non of them worked : let parameters = [ "name": "test", ] Alamofire.request(URL(string: "http://www....

How to get Video URL from Facebook Video id / share URL in Swift 3

I am trying to get the playable video URL from Facebook, Facebook doesn't give direct URL of video to play , instead its a URL with Video ID, I want to know if there a way to get Video URL using ...

GooglePlaces iOS, Can't load search results

GooglePlaces GMSAutocompleteViewController stopped searching for places. check the screenshot image GMSPlacesClient key is setup properly, It was working fine. Please help if you know anything ...

What are valid values for “associatedServiceType”?

Where can I find all supported HMServiceTypes for the property associatedServiceType of a HMService? The only information I found in the reference is: The associated service can be any service ...

camera capture issue in ios 8.4 and above using Cordova 2.9

In regards with devices running on IOS 8.4 and above, I have been facing an issue while trying to capture an image(preferably JPEG/JPG) through navigator.camera.getPicture method. No Callbacks are ...

Issue with ideviceinstaller while launching app into real device using Appium

I'm trying to launch the app in real device using java code Initially its working fine and after when i tried to launch the app appium is throwing exception. > [debug] [iOS] Creating iDevice ...

Swift. Xcode. Long subtitle in annotation in MapKit

Hello can you help please? How i can make long subtitle in annotation MapKit? I tried to add label in annotation like that: let detailLabel = UILabel() detailLabel.numberOfLines = 0 detailLabel....

What mobile tools should I use in my project?

I'm relatively new in mobile development, but I'm really familiar with HTML5. I have a project, wich will be used in pubs, where the customer orders the bar through his cell phone. Some informations: ...

How to show temperature on map for all cities using swift [on hold]

all this is my first time asking a question. Ss there any way to show all temperature of the world in a map such as openweathermap has in here http://openweathermap.org/weathermap#. I have google but ...

Cordova device ready doesn't work on xcode but work on device

don't know why but the device ready event doesn't work anymore on xcode simulator, but it's works on my iphone device. Here my function: document.addEventListener('deviceready', onDeviceReady, false)...

Upload image to Cloudinary IOS

I can't upload image to Cloudinary hosting via HTTPS POST request, I want to use simple API methods, don't use SDK. Problem with format image in byte array buffer or Base64 encoded. Here some code: ...

Active tableView cells keep getting disabled when I scroll through my tableview

I have app that has a UITableView containing different sections. I want to have only allow access to the first 3 sections i.e the index path 0, 1 and 2. My problem is my code works when the app is ...

how to control pagination with instagram API

I am developing a function which can use Instagram medias. According to Instagram API I have implemented the following code: let manager = AFHTTPSessionManager() var InstagramImage:[UIImage] =...

super.viewDidLoad() crashes my app

On the line where super.viewDidLoad() it says Thread 1: Breakpoint 2.1.In the console it just says "(11db)".This is a screen shot:

Identify source cause for Cordova no launching in iOs 9 but works fine in iOs 10

As title said, I'm facing issue with Cordova working properly in iOs 10 both on simulator and device, but not launching on iOs9 (no deviceready fired, no script started at all. It just display the ...

Push Notifiction and CoreData

i need help, i want save the push notification info in the DB (using core data) when the app is close. I can't get the push notification information when received and the app is close. If the app is ...

NSURLConnectionDelegate works on iOS 9 and 10?

According to the below developer site post: https://developer.apple.com/reference/foundation/nsurlconnectiondelegate?language=objc below methods of the NSURLConnectionDelegate is deprecated from ...

Is it possible to merge two .CAF files into one and then specify separate audio channels?

I understand that it is possible to merge two .CAF files as mentioned here Combining two .caf files on iPhone However, I am wondering if I can specify the newly created file to play the original two ...

Scrolling web page freezes on iOS with relative positioning

I have set up a web page with a main container (absolutely positioned) which has some scrolled content. It is a typical header / footer set up. The content has a number of textboxes on it. However, ...

How to use OneDriveSDK for iOS in an iOS app extension

According to the code on OneDriveSDK`s GitHub for iOS, the SDK should support being used in app extensions too. We use successfully the SDK in our app itself, but I am not getting it to work in an app ...

Is there a text editor for the iPad? [on hold]

I have been traveling a lot recently, and I would like to know if there was a text editor so I can program in HTML, JavaScript, and CSS. That is, in my iPad.

Uploading File to server - Swift (uploading contents of file but need complete file to transfer)

I tried with several ways to upload a file from swift to FTP server. All I see is only the contents of the file is transferring and not the complete file. How to transfer the entire file instead of ...
Translating... 0%