Newest ios Questions

Q&A for professional and enthusiast programmers

Compile iOS app against older Mono framework version in Xamarin Studio

I'd like to debug my iOS app using an older version of the Mono framework so that I can see how things behaved with an older version of the Mono.Data.Sqlite assembly. How can I tell Xamarin Studio to ...

Printing item too big

This is how I'm printing an image at the moment: let printInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = .photo let printController = UIPrintInteractionController.shared ...

Application openURL gets called a few seconds after didFinishLaunchingWithOptions

I have a deep linking feature in my app that works fine beside one case. I have a 3 different onboarding pages according to the url that opened the app. So when the app is launched i need to know what ...

SIGSEGV SEGV_MAPERR crash, only iOS 9.2.1

my app crash only iOS 9.2.1 The rest of devices okay. Crash in arbitrary places. Please help me =) I use crittercism. I am new to programming, tell me the right way please. Name SIGSEGV Reason ...

looking for IOS developer for help in completing my FYP

Good evening.... guys if someone have experience in IOS developement,i need some help in my final year project, that is basically an OCR based dictionary (IOS app/utility app).the app feature is you ...

calculate distance between postcode in swift 3

im working on an app which will, well, needs to be calculating a distance from postcode a to postcode b. the user is giving the last postcode from the current location, postcode b. the first location ...

Mailto links in iOS not working

Whenever I try to add a simple mailto link, all devices except iOS work fine. Based on Apple iPhone Documentation it should work as such: <a href="mailto:frank@wwdcdemo.example.com">John Frank&...

Cocoapod podspec using a zip archive

I am trying to create the podspec for a private framework, the built .framework file is available in a zip archive online. The documentation says it supports zip archives. However I could not validate ...

Rotate and changing position of view in same time?

I have an app and I need to reproduce a dice animation. Everytime when the dices are rolled I should change a little bit his position on X axis and his rotation. The dice is an UIButton inside of an ...

disabling Cross-Origin Restrictions in Safari on xCode's IOS SIMULATOR (iPad)

For development purposes, I need to disable the Cross-Origin Restrictions in Safari in XCODE's IOS SIMULATOR (iPad) on my iMac. In Safari on my iMac, this can be done simply by checking 'Disable ...

How to create website visitor tracking to app install - using app login with Facebook / PhoneGap

I created a PhoneGap app (IOS & Android) that uses login with Facebook. My back end server then verifies the Facebook token, gets the ID, email, name, etc. I want to pay people who promote my ...

What networking / database library is recommended for J2ObjC

Since J2ObjC is still being maintained well I'm about to give it a shot this time for an upcoming project. I want to write the domain and data layer in J2ObjC and share it between iOS and Android. ...

Persist UITableViewCell background color on scrolling tableViewCells

I have a UITableView, when the user taps a cell it turns grey to indicate it is complete. However when the cell is scrolled out of view, when it comes back into view it has returned to its default ...

LongPolling With rxSwift

I studying rxSwift, and I want to do service for the interaction of c longpolling server to this service imitating a permanent connection. I wrote it, but it seems to me, is not that the decision ...

Given the texture in the right way

So as you can see, the texture of the photoFrame is a square image. But when I set it to the diffuse contents, the effect is terrible. So how can I display the square image in the rectangle frame but ...

How to sort an array of tuples by an Int value?

I have an array of tuples ( var array = [("John Doe", 13), ("The Guy", 15), ("The Person", 19)] and want to sort them by the int value going from greatest to least. At the end I want the array to ...

RTSP live stream on iOS

I am trying to implement an iOS app that supports HTTP and RTSP live stream. I have setup a RTSP live camera but I don't know how to show it on the iPhone. Is RTSP even supported by the iOS SDK and ...

Xcode error while compiling the project

My Xcode project was running all good, I connected my iPhone to transfer the build and since then I am getting these errors Unknown type name CGContextRef in file CGBitmapContext.h I have been ...

How to create Model class in Objective C++?

I want to make Model class in objective c++ which contains Name & Email id. Like what we do in Swift 3 ex:- import UIKit class modelDemo: NSObject { var name : String = "" var emailId :...

terminate app after opening safari - swift

I have a button in my app that opens a link via safari. There are some tasks user does in web and finally returns to app on pressing a button in browser. what I need to do is to terminate app when ...

get the viewcontroller of containview

@IBOutlet weak var containerView: UIView! I got this, in my page and uiview that loads a view controller.How can I on viewdidload get viewcontroller of containerview? Using swift 3.

How to add multiple text to video in iOS as shown in image?

enter image description here i have to add multiple text to video like a profile page.there should be proper alignment of text.i am facing problem in alignment and adding multiple text. help me out ...

Ionic Failed to load resource: The requested URL was not found on this server

I have the following problem, I have an application developed with Ionic 1, this application allows the user to select a background, as well as Whatsapp conversations, this works very well on the ...

AVCaptureSession and Preview Layer does not fill entire screen

So, I'm trying to use the camera on my phone in my app, and I was successful, but unfortunately, when using the preview, the layer does not fill the entire screen Here is an image to show you what it ...

When to use @atomic?

I've already seen this question: What's the difference between the atomic and nonatomic attributes? I understand that @atomic does not guarantee thread safe, and I have to use other mechanisms (e....

How can I convert these doubles to integers on this iOS Bar Chart? [duplicate]

I want to convert these doubles to integers on this graph below: I have followed the advice of other posts and created a YAxisValueFormatter() that implements IAxisValueFormatter but this doesn't ...

af_setImage - unexpectedly found nil while unwrapping an Optional value

I want to load my images from sever side, but af_setImage show me this error : fatal error: unexpectedly found nil while unwrapping an Optional value my code : override func collectionView(_ ...

Why UIImageJPEGRepresentation and UIImagePNGRepresentation increase data size?

Doing a image scaling to have image limit in 320x480, so w <= 320 and h <= 640. But after conversion to data and back conversion to image I get a twice as big image as it was originally. Why? ...

Swift 3 - Program crashes when trying to perform fetch request

currently, I'm trying to fetch an entity of type song on one of my view controllers. this is the code that's relevant, that I have: import CoreData class TimerScreenVC: UIViewController, ...

Can a View Controller inside a PageViewController animate upwards when Swipe Gesture Up is done by the user?

I have a UIPageViewController, with a couple of view controllers inside. It is currently horizontal scrolling and I've added a swipeUp gesture to the view itself. var swipeUp = ...

iOS app to get data from website's API

I am developing a website and an iOS app. I want the same functionality both at the website and in the app, so I am thinking that the best idea is to develop the infrastructure on the website first. ...

Wrong UIInterfaceOrientation issue in UIViewController with presentViewController

Case like this: AViewController config - (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } BViewController config - (...

C++ on iOS (XCode) Firebase #include firebase/app.h not found

I have my dependencies put in, gradle properties completed, pod installed and completed and JSON, SDK download and put to the relevant places. However why am I getting an error build on #include "...

ObjectMapper Unresolved identifier 'Mapper'

My taskModel class file import Foundation import ObjectMapper // Mappeable source code public protocol Mappable { init?(_ map: Map) mutating func mapping(map: Map) } // Conform to the ...

How to move marker on the googlemap like ola app

I am working on app the like ola cabs.when the user drags map the a view transparent view appears with marker moving and when the user stops dragging the we have to centre the gmscamera position same ...

objective-c what is the difference when swizzling between these 2 mechanisms

There is a slight variation between these 2 ways of swizzling. I just want clarification if there is something fundamentally different or wrong between them Assuming we are swizzling viewDidLoad on ...

UITextView/UITextField: How to check if a delete key is pressed in Swift

As the title in this question. I want to check if delete key is pressed. I knew about this code below: func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, ...

pass the data from uitableview to other uiview

I'm new in swift and IOS, i have some problem to pass the dictionary data to other uiview, anyone can help me to fix it? LessonsTableViewController: var mylessons = [ ["title":"Posture", "...

Swift: Split view controller on universal app that isnt initial view controller

I have a universal app and want to add a split view controller for my settings view only. This means that I require a split view controller that isnt the initial view controller which would handle the ...

How to add items in Firebase using react native

I'm still a newbie in react native and it's also my first time using Firebase database. So, using the official documentation i've managed to add items (composed only by title ) in the database but ...

ionic ftp plugin doesn't work on ios

I'm trying to use the cordova-ftp-plugin in my ionic app. It works well on android, but I can't get it to work on ios. After connecting (which always works on ios), I'm getting requestsManager:...

iOS writeToURL delay or screen freeze, how to resolve the thread in the case

I have a complex operation, then when the operate complete, It will save to NSData write to the file to preview. I encounter a problem, when I click the button , the button action will start show ...

What are some of the unknown domains like “com.apple.fmip” that can be used with ideviceinfo command in libimobiledevice?

I want to know where i can find some of the query domains to be used with libimobiledevice apart from that provided with the ideviceinfo help command. Eg: The one below is not listed in the known ...

Using only one AVAudioPlayer instead of three

I created three AVAudioPlayer, each plays an audio file. While the audio is playing the UIButton is set selected by audioPlayerDidFinishPlaying. Insted of using three different AVAudioPlayer, I would ...

NSNotFound not working with NSUser default

As I am storing one Integer value into NSUserDefaults aas its used at many places. At first time its working fine but while i close my application and again open it I am check that user already ...

How to structure my Object to retrieve nested FireBase data

i want my app (IOS & Android) to display some news feeds, and this news feed could be including text & 1 image (to be display in image view) or text and multi images a not specified NO. (to be ...

Swift Reduce - Add Int Values of Strings

I have an array ZZ of custom object A with property: String a1 I would like to add the a1 property of all the elements in the array and return an NSNumber value. Since the value a1 is a string, I ...

MVVM tableviewcell return nil

I'm trying to make an mvvm integration on a tableViewController, however I keep getting fatal error: unexpectedly found nil while unwrapping an Optional value on super.init(style: style, ...

What is the best way to keep association between 2 specific managed objects from different tables(entities) with Core Data?

In my app I have 2 entities: Project: projectId: Int64 title: String? address: String? startDate: Date endDate: Date ... User: userId: Int64 email: String? firstName: String? lastName: String? ...

IOS Handwriting

I am trying to make the handwriting demo app. Is there the library or open source for it. I found the tesseract on google but I think it is for the ocr and ocr is different with handwriting. Can I use ...
Translating... 0%