logo
down
shadow

IOS QUESTIONS

Editing a PDF in UIDocumentInteractionController and saving..?
Editing a PDF in UIDocumentInteractionController and saving..?
hope this fix your issue Looks like this library solves my problem: https://github.com/derekblair/ILPDFKitIt lets you edit a PDF, access and set individual fields and save out as a static PDF.
TAG : ios
Date : January 12 2021, 08:33 AM , By : user116330
iOS Sample Code to clear my application notification from Notification Center?
iOS Sample Code to clear my application notification from Notification Center?
wish helps you thanks all , I have solved my problem after trying so many codes , I called a method on a button and it worked with this snippet:
TAG : ios
Date : January 12 2021, 08:33 AM , By : Jouni
Adding .removeStateDidListener to deinit causes Application to Crash
Adding .removeStateDidListener to deinit causes Application to Crash
may help you . My guess is that _authHandle is already nil in the deinit. Test this if you can. Also note that you do not need to call removeObserver method for iOS 9+.
TAG : ios
Date : January 12 2021, 08:33 AM , By : gcomstock
How to connect an iPhone app (rest) to XAMPP using a local WIFI connection?
How to connect an iPhone app (rest) to XAMPP using a local WIFI connection?
With these it helps Finally I used a software named SquidMan to create a proxy. The procedure is described here: http://egalo.com/2012/05/29/testing-mac-web-site-using-local-hostname-on-mobile-device/Advices:
TAG : ios
Date : January 12 2021, 01:40 AM , By : Nickolas
Swift 4 delegate is not working with tabbar controller
Swift 4 delegate is not working with tabbar controller
like below fixes the issue In MainVC's viewDidLoad you are creating a new SettingsVC instance and assigning self to that instance's property. Not to the actual forth view controller of the tab bar controller.Get the fourth view controller instance fr
TAG : ios
Date : January 12 2021, 01:40 AM , By : user184415
How do i compile all contact's phone numbers into one cell - using CNContact
How do i compile all contact's phone numbers into one cell - using CNContact
wish helps you My code I am using to source the contact's phone number is below, what i would like to do is have all the contacts phone numbers (landline, mobiles etc) shown together, example 0402 000 000, 618 802336, 0423 000 000 (together in the on
TAG : ios
Date : January 11 2021, 05:14 PM , By : marocchino
How do I change the color of two UIButtons when I press them?
How do I change the color of two UIButtons when I press them?
like below fixes the issue You get some methods "for free" with buttons to manage their state. One of them is isSelected. Another is the tag property, so you can figure out which button is which. Since you've only got two buttons, you can get away wi
TAG : ios
Date : January 11 2021, 05:14 PM , By : lonehunter01
UIViewPropertyAnimator doesn’t work as expected
UIViewPropertyAnimator doesn’t work as expected
it helps some times Fiexd it, just add view.layoutIfNeeded() between the two lines of code inside the property animator.
TAG : ios
Date : January 11 2021, 05:14 PM , By : Michael T.
GoogleMaps camera target in top left corner of map iOS since pod update
GoogleMaps camera target in top left corner of map iOS since pod update
this one helps. I found I was able to solve this problem by adding the map creation to ViewWillAppear as opposed to having it in the ViewDidLoad.
TAG : ios
Date : January 11 2021, 03:34 PM , By : Ron
Allowing SwiftUI to import all Contacts and delete specific ones
Allowing SwiftUI to import all Contacts and delete specific ones
With these it helps You usually use ObservableObject for model/controller interaction. Making them published just allows me to assign the result to the variable.It currently starts the fetch inside onAppear async since it would otherwise block UI loa
TAG : ios
Date : January 11 2021, 03:34 PM , By : user179271
How can I obtain POST request body from WKWebView in Swift?
How can I obtain POST request body from WKWebView in Swift?
it fixes the issue I'm answering my own question because I figured out how to do this on my own. Perhaps my question wasn't clear. My end goal was to extract the body content as a string.Firstly, I ditched the callback I used:
TAG : ios
Date : January 11 2021, 03:34 PM , By : Julian Ivanov
Why is array in collection view getting multiplied by amount of sections?
Why is array in collection view getting multiplied by amount of sections?
Does that help Since you have three cells per section, and assuming you have only one section, collectionView(_:cellForItemAt:) gets called three times. Each time you are printing all the elements of the numbers array. To only print the element corre
TAG : ios
Date : January 11 2021, 03:34 PM , By : Robert MacGregor
How is enumerated() constant time O(1)?
How is enumerated() constant time O(1)?
I hope this helps . Creating an EnumeratedSequence comes down to initializing its iterator. The latter is done in two steps: Have a pointer to the base collection or sequence on which enumerated() is called. Initialize the internal variable _count to
TAG : ios
Date : January 11 2021, 03:34 PM , By : General Mills
How to get XML data and bind in tableview in iOS Swift?
How to get XML data and bind in tableview in iOS Swift?
will help you You can parse any xml data using this code. Then you can access your data in parsedData variable. Using the helper function "search", you can get any of the value of any key.
TAG : ios
Date : January 11 2021, 03:28 PM , By : simonth
Interface Builder Constraints Problems
Interface Builder Constraints Problems
seems to work fine You have to define more constraints, as in:
TAG : ios
Date : January 11 2021, 03:28 PM , By : Liy
Xcode 11 beta can't upload app to TestFlight
Xcode 11 beta can't upload app to TestFlight
wish of those help It looks like you trying to use a project generated by Xcode 10. Could you try this:
TAG : ios
Date : January 11 2021, 03:28 PM , By : Carter
iOS odd Thread 1: Fatal error: Index out of range on iPad
iOS odd Thread 1: Fatal error: Index out of range on iPad
Does that help The viewWillLoad method was not being called in iPad, and since the initializations of the data arrays are all local data and there's no need for asynchronous loading, the easiest workaround was to test an array and call the loading fu
TAG : ios
Date : January 11 2021, 03:26 PM , By : Gipsy.D
Cannot convert json object to struct
Cannot convert json object to struct
will help you You have to pass .responseData rather than .responseJSON to get the raw data, .responseJSON returns a collection type.
TAG : ios
Date : January 11 2021, 02:18 PM , By : n1ckless_id
How can I prevent the stopwatch from resetting after pause
How can I prevent the stopwatch from resetting after pause
I hope this helps . keep the startTime variable from being modified until it is reset. maybe for example like this
TAG : ios
Date : January 11 2021, 02:18 PM , By : apple
Cannot convert value of type '() -> _' to specified type '[UIViewController]'
Cannot convert value of type '() -> _' to specified type '[UIViewController]'
will be helpful for those in need You declare the viewControllerList2 as an array of UIViewControllers. Then you try to set a code of block to that var! That is your problem. You are doing this:
TAG : ios
Date : January 11 2021, 02:18 PM , By : wiznick
How to make a reference to a uid stored in Firestore?
How to make a reference to a uid stored in Firestore?
I wish this helpful for you I am trying to add a constant referencing the current user's uid , but it accesses the red one not the blue one as it should (see image) , Try this
TAG : ios
Date : January 11 2021, 11:39 AM , By : Adam
How do you initialize/use UITableViewCells with CellStyle = .value1 programmatically?
How do you initialize/use UITableViewCells with CellStyle = .value1 programmatically?
it helps some times Don't call tableView.register(...)Instead, use this approach in cellForRowAt:
TAG : ios
Date : January 11 2021, 11:39 AM , By : Scott Everts
How to know if Apple has received our appeal/how long does it take Apple to respond?
How to know if Apple has received our appeal/how long does it take Apple to respond?
this one helps. Usually the apple review team responds in 24 to 48 hours after appealing. Although this time may vary depends on the complexity of your case.My suggestion is do not ping them too much if you have submitted an appeal. Keep it patient
TAG : ios
Date : January 10 2021, 02:06 PM , By : Carlos Galdino
Select new item added to SwiftUI List
Select new item added to SwiftUI List
like below fixes the issue The following solution uses the selection attribute of NavigationLink. One problem here is that only items currently visible get rendered, so selecting a row further down does nothing.
TAG : ios
Date : January 10 2021, 02:06 PM , By : JulianCT
What is the correct length: argument to provide to NSRange for NSRegularExpression using a (Swift) String?
What is the correct length: argument to provide to NSRange for NSRegularExpression using a (Swift) String?
With these it helps The utf16 count is correct, not the utf8 count. Or, best, use the convenience initializers, which convert a Range of String.Index to a NSRange:
TAG : ios
Date : January 10 2021, 02:04 PM , By : snk
I am trying to delete data from database, but sometime data is deleted and sometime data is not deleted
I am trying to delete data from database, but sometime data is deleted and sometime data is not deleted
this one helps. You don't show how you call the method for deleting from the database, or where _name.text is coming from, but my initial inclination is that you're deleting the target row from your data model array prior to using it:
TAG : ios
Date : January 10 2021, 02:04 PM , By : Cosmin
How to get slider value with subview rotation angle
How to get slider value with subview rotation angle
I wish this help you After some struggle I got the answer. I am getting negative angle after 90. So if I got negative angle I calculated the differences between required angle and the current angle.
TAG : ios
Date : January 10 2021, 02:04 PM , By : user187301
Can't pass custom UINavigationBar / UIToolbar to UINavigationController because they don't conform to AnyClass
Can't pass custom UINavigationBar / UIToolbar to UINavigationController because they don't conform to AnyClass
will be helpful for those in need So...class MyToolbar: UIToolbar does not conform to AnyClass nor does my class MyNavigationBar: UINavigationBar. , Got it :) You need to refer to the class as a Type :)
TAG : ios
Date : January 10 2021, 02:04 PM , By : PepeM
Grab SELECTED text on UITextView
Grab SELECTED text on UITextView
hope this fix your issue How do I grab the SELECTED or HIGHLIGHTED text on a UITextView? I already know how to do this on UIWebView using JavaScript. Now I am trying to figure it out for the UITextView. , you can do it by
TAG : ios
Date : January 10 2021, 01:49 PM , By : jaime
Clever ways to better test GPS code using only the iPhone simulator?
Clever ways to better test GPS code using only the iPhone simulator?
Any of those help It is normal way to receive the GPS data.[GPS module] ----(CLLocationManagerDelegate)---> [YourLocationManager class]
TAG : ios
Date : January 10 2021, 01:45 PM , By : toma
Remove app before simulator or device is lunched from Xcode
Remove app before simulator or device is lunched from Xcode
wish help you to fix your issue It is not possible as you want and still there is no way to achieve thisPlease refer this link: How do I programmatically remove an application from an iOS device?
TAG : ios
Date : January 09 2021, 02:14 PM , By : Angel Paunchev
Auto Layout constraints for container view inside UITableView header broken for different devices
Auto Layout constraints for container view inside UITableView header broken for different devices
wish help you to fix your issue At first I accepted DonMag's answer (thanks for your time) as this really seemed to be an Xcode Interface Builder bug. As I investigated further when having the scenario I mentioned auto layout constraints are not upda
TAG : ios
Date : January 09 2021, 05:38 AM , By : ezzze
iPhone restarts after API call
iPhone restarts after API call
Hope this helps The fact that the phone (or possibly just springboard) restarts, and not just your application means this is Apple's bug. You're not supposed to be able to crash iOS even if you try. Finding a likely cause will be hard since the syste
TAG : ios
Date : January 08 2021, 10:52 AM , By : geo
What is the shortcut / How do I create function after writing it's usage in Xcode
What is the shortcut / How do I create function after writing it's usage in Xcode
wish helps you No there's not any shortcut for create auto func() or methods as like as Android Studio. XCode IDE does not provides any shortcuts for auto create methods, etc. For creating a user defined func() or method() you've compulsory write fun
TAG : ios
Date : January 08 2021, 10:52 AM , By : NeedOptic
Convert apple time stamp to Unix time
Convert apple time stamp to Unix time
To fix the issue you can do Ok I found a solution here: https://www.epochconverter.com/coredata
TAG : ios
Date : January 08 2021, 03:18 AM , By : Adrian Codrington
No podspec found for `React-fishhook`
No podspec found for `React-fishhook`
around this issue You need to remove the pod from your Podfile as it is no longer needed.Delete this line:
TAG : ios
Date : January 08 2021, 03:18 AM , By : OllieDoodle
How to test touch dialog and perform real in-app purchase?
How to test touch dialog and perform real in-app purchase?
I wish this helpful for you To test in-app in Production environment, not Sandbox, you need to have the appropriate build. If you are running from Xcode, you are automatically acting in Sandbox.To have a Production environment, you need to make an Ad
TAG : ios
Date : January 07 2021, 03:08 PM , By : Marie Ramos
Compiling Metal shaders from source on iOS 13 Simulator gives PCH error
Compiling Metal shaders from source on iOS 13 Simulator gives PCH error
Does that help I am working on the Cocos2d-x v4 branch which introduces Metal backend support and uses glsl-optimizer to convert GLSL to MSL for compilation at runtime using newLibraryWithSource:options:error:. , This issue was solved by using Xcode
TAG : ios
Date : January 07 2021, 03:08 PM , By : Vinicios
conan error:I need to cross build packages for os:iOS with my Macos, but when the first package was done, it broke my cp
conan error:I need to cross build packages for os:iOS with my Macos, but when the first package was done, it broke my cp
Hope that helps To avoid test_package execution when cross-building, I strongly recommend the Bincrafters idea:
TAG : ios
Date : January 07 2021, 07:50 AM , By : ck1
Update calendar 'start of week' from phones system calendar
Update calendar 'start of week' from phones system calendar
hope this fix your issue If you use Calendar.current and don't explicitly change its locale or its firstWeekday property then the calendar's firstWeekday property will automatically be appropriate for the user's device settings.Code your logic based
TAG : ios
Date : January 06 2021, 03:17 PM , By : mediafarm
Xcode is showing some warnings
Xcode is showing some warnings
it should still fix some issue This answer makes a key assumption that you are using Cocoapods since you mention a third party library. If that is not the case, then ignore this.As @rmaddy has pointed out, a deprecated library likely contains code th
TAG : ios
Date : January 06 2021, 03:17 PM , By : user183275
How to remove the default Navigation Bar space in SwiftUI NavigiationView
How to remove the default Navigation Bar space in SwiftUI NavigiationView
will be helpful for those in need For some reason, SwiftUI requires that you also set .navigationBarTitle for .navigationBarHidden to work properly.
TAG : ios
Date : January 06 2021, 03:17 PM , By : Stephen Judge
Having trouble integrating multiple pickerviews in the same view
Having trouble integrating multiple pickerviews in the same view
Hope this helps Your picker view data source/delegate code looks OK. The problem appears to be with how you create and setup the input view and input accessory view for each text field.You only need one picker view and one tab bar. Assign each to bot
TAG : ios
Date : January 06 2021, 03:17 PM , By : PsyberMonkey
SCNNode not in SCNView hierarchy, still showing & getting touches & physics
SCNNode not in SCNView hierarchy, still showing & getting touches & physics
I think the issue was by ths following , It only happened when the node was removed straight after being created (because it was out of range). Adding a short delay to the removal fixed it:
TAG : ios
Date : January 06 2021, 03:27 AM , By : PepeM
How can I open my SwiftUI app and perform a function using NSUseractivity from within Siri Intent Extension?
How can I open my SwiftUI app and perform a function using NSUseractivity from within Siri Intent Extension?
Any of those help Like you already commented you can use func scene(_ scene: UIScene, continue userActivity: NSUserActivity) to continue the NSUserActivity when the app is still in the background. However when the app is closed you can implement let
TAG : ios
Date : January 05 2021, 11:29 AM , By : Tim
NSCoding decodeObject always nil
NSCoding decodeObject always nil
around this issue Your issue is that you never initialized your lines array. Change its declaration to non optional and initialize it with an empty array. Try like this:
TAG : ios
Date : January 05 2021, 11:29 AM , By : Lucas Thompson
Passing data in a segmented Controller?
Passing data in a segmented Controller?
around this issue Don't try to manipulate another view controller's views directly. That violates the principle of encapsulation and often doesn't work (as in this case.)You should add a string property to the other view controller, and install that
TAG : ios
Date : January 02 2021, 10:54 PM , By : Murali Ravipudi
Facing issue in Siri Integration with custom intents
Facing issue in Siri Integration with custom intents
hope this fix your issue Find my analysis for the above questions. Can we add the intents programmatically to Siri instead adding from shortcuts app or settings. So that user can directly use the functionality once installing the application.
TAG : ios
Date : January 02 2021, 10:54 PM , By : Killercode
ARKit3 Hardware Requirement Clarification
ARKit3 Hardware Requirement Clarification
I wish this helpful for you The ANE is the Apple Neural Engine. Apple's footnote is a little misleading. People occlusion is performed on the scene captured by the rear camera and so does not make use of the TrueDepth camera.
TAG : ios
Date : January 02 2021, 10:54 PM , By : Pat
ARKit3 How to use TrueDepth camera for face tracking and face meshes of other people?
ARKit3 How to use TrueDepth camera for face tracking and face meshes of other people?
should help you out ARKit 3 provides the ability to use both front and back cameras at the same time. Face tracking uses the front camera and requires a device with a TrueDepth camera. ARKit 3 can now track up to three faces with the front camera. Fa
TAG : ios
Date : January 02 2021, 10:54 PM , By : wrb302
How to discriminate while decoding using Codable Protocol in Swift?
How to discriminate while decoding using Codable Protocol in Swift?
To fix the issue you can do I am using Swift's Codable Protocol. I have shared the code. , Need to change model as per current response you posted
TAG : ios
Date : January 02 2021, 06:48 AM , By : Ted Leung
'IPA processing failed' while distributing build in Xcode Beta
'IPA processing failed' while distributing build in Xcode Beta
it should still fix some issue For me the following Solution Worked. Uncheck the bitcode check while creating the iPA and click on next as soon as possible and dont allow xcode to call the api for validating the IPAUncheck this rebuit with bitocde on
TAG : ios
Date : January 02 2021, 06:48 AM , By : kaart
How to debug a crash which happened when come back from background
How to debug a crash which happened when come back from background
it fixes the issue These things can be tough, I know that from similar experiences. Without knowing more about your app I can only offer hints and no definitive answer, but perhaps this helps you.The fallback and tedious approach to use direct loggin
TAG : ios
Date : January 02 2021, 06:48 AM , By : Bruce
Synchronising old data with NSPersistentCloudKitContainer
Synchronising old data with NSPersistentCloudKitContainer
I hope this helps . I've found a solution that works for my Core Data database - and mine is quite complex with multiple many-to-many relationships (A surgery/anaesthesia logbook app called Somnus)I started by creating a new attribute for all my Core
TAG : ios
Date : January 02 2021, 06:48 AM , By : yarry
iOS app opened from web app with url redirects to Appstore
iOS app opened from web app with url redirects to Appstore
With these it helps It will be helpful if you can add some details on iOS version and browser, as both may be responsible to the behaviour you are describing.In general the behaviour above seems to resemble issues which occur when you are trying to f
TAG : ios
Date : January 02 2021, 06:48 AM , By : brij
How to change the color of seperator in tableView?
How to change the color of seperator in tableView?
wish helps you Simply update the separatorColor property of tableView with the required UIColor instance.
TAG : ios
Date : January 02 2021, 06:48 AM , By : lamberms
Is there a better way to watch for a key-value change?
Is there a better way to watch for a key-value change?
help you fix your problem According to the official AVPlayer documentation, there are two approaches you can use to observe a player’s state:
TAG : ios
Date : January 02 2021, 06:48 AM , By : Nulq
How to make UIBezierPath to fill from the center
How to make UIBezierPath to fill from the center
To fix this issue How do I make a UIBezierPath that starts drawing from the center and expands to the left and right? , There are quite a few options. But here are a few:
TAG : ios
Date : January 02 2021, 06:48 AM , By : ChristianM
Why on Xcode 11, UICollectionViewCell changes size as soon as you scroll (I already set size in sizeForItem AtIndexPath:
Why on Xcode 11, UICollectionViewCell changes size as soon as you scroll (I already set size in sizeForItem AtIndexPath:
Hope that helps I have the same problem. And my solution is to change the Estimate size to None in the Xcode 11.
TAG : ios
Date : January 02 2021, 06:48 AM , By : user178372
How to scan non LE devices using Swift?
How to scan non LE devices using Swift?
I think the issue was by ths following , That device states that is MFi certified and uses the SPP profile, not the BLE GATT profile. This means that you will need to use the External Accessory Framework, not Core Bluetooth, to communicate with it.Yo
TAG : ios
Date : January 02 2021, 06:48 AM , By : Paolo

shadow
Privacy Policy - Terms - Contact Us © scrbit.com