How to create a multiline UITextfield?

I am developing an application where user has to write some information. For this purpose I need a UITextField which is multi-line (in general UITextField is a single line). As I'm Googling I find...

Black and white overlay for an MKMapView

I have an MKMapView and am adding an overlay (MKOverlay) to it. I would like the overlay to make the map view underneath to appear black & white (i.e. monochrome). Is there any way of doing...

CMDeviceMotion yaw values unstable when iPhone is vertical

In a iOS prototype I use a combination of CMDeviceMotion.deviceMotion.yaw and CLHeading.trueHeading to make stable compass heading that is responsive and accurate. This works well when the iPhone...

How to embed a Twitter feed and/or hashtag in IOS

I need basically just a table view that showed recent tweets from either a @username or a #hashtag in a tableviewcontroller. No requirements to post tweets or anything like that. Currently I use...

uipageviewcontroller class crashing on setting more than one view controllers

My app keeps crashing, when I set more than one view controller in my app, like below. [self setViewControllers:_images direction:UIPageViewControllerNavigationDirectionForward animated:YES...

Xcode : failed to get the task for process

This is for an existing app that compiled and distributed multiple times. Since updating to Xcode 5 I have this error popping. I have my developers profile selected in the Code Signing for...

Pods-resources.sh Permission denied in iOS Project

I have got an existing project from a client and I tried to run this in my MAC using XCode 5.0 But I am facing this following error. I installed Cocoa Pods but still doesn't work. This project is...

Detect/Stop Spoofing of Location possible in iOS sdk?

I am having an application in which users need to visit particular locations. When users are nearby to this location a form is being open to fill. I have doubt that some users are spoofing their...

Cordova platforms installed: iOS broken

I cloned a remote repository that has the platforms already, when I run the following I get 'android broken iOS broken'. What does this mean by broken and is there a fix other than removing the...

Simulate fake location on real iOS device

I want to simulate fake location on my iPhone 5S device using specific longitude and latitude. Is there a way to do this in XCode. I tried using the simulate location feature by adding a GPX file...

What is the use of entitlements.plist file?

I have some questions regarding entitlement file: What is the use of entitlements file. What happens if I don't add it. What is the difference between myApp.entitlements and entitlements.plist?

Create thread safe array in Swift

I have a threading problem in Swift. I have an array with some objects in it. Over a delegate the class gets new objects about every second. After that I have to check if the objects are already...

Custom Clear Button

I want to create custom clear button on UITextField, that is to use rightView and put image there, the problem is attaching the original clear button event to that custom rightView. In...

URL validation in Swift

In my Swift iOS project, I want to check whether is the valid url or not before requesting to server. I did earlier in Objective C code to check many elements like presence of www, http, https, :,...

Simplest way to throw an error/exception with a custom message in Swift?

I want to do something in Swift that I'm used to doing in multiple other languages: throw a runtime exception with a custom message. For example (in Java): throw new RuntimeException("A custom...

Make button open link - Swift

This is the code I have now, taken from an answer to a similar question. @IBAction func GoogleButton(sender: AnyObject) { if let url = NSURL(string: "www.google.com"){ ...

how to set up something like a collectionview in a tableview?

Here is a visual example of what I would like to achieve. My initial idea was to use a UICollectionView with custom cells, but that didn't work out very well and trying out collectionview within...

Finding local maximum points of a given data set

So I embarked on a quest to calculate the number of steps taken by a user by using the data I get from the accelerometer i.e x, y and z coordinates. I am trying to implement this algorithm but I...

Error Running React Native App From Terminal (iOS)

I am following the tutorial on the official React Native website. Using the following to build my project: react-native run-ios I get the error: Found Xcode project TestProject.xcodeproj xcrun:...

How to get HTML5 video thumbnail without using poster on safari or iOS?

I have embedded HTML5 video with mp4 format. How to get thumbnail image like poster without using "poster" attribute. This problem coming on Safari and iOS. I have added video like below mentioned...

Seeing black bars at the top and bottom of the iPhone X Simulator

Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects: the App does not use the full screen space (top and bottom area is black) a strange white bar beneath the...

Cordova app not displaying correctly on iPhone X (Simulator)

I tested my Cordova-based app yesterday on the iPhone X Simulator in Xcode 9.0 (9A235) and it didn't look good. Firstly, instead of filling the full screen area, there was a black area above and...

Firestore.firestore() fails with "Type 'Firestore' has no member 'firestore'"

I am trying to setup a database for my Firestore however I tried reinstalling the pods and many other things and I still cannot get it to work because it shows this error: Type 'Firestore' has no...

VNImageBasedRequest regionOfInterest not within normalized bounds

I am attempting to access specific sections of an image to perform a VNCoreMLRequest on user defined areas of the image. I am getting errors for certain regions of interest while others are just...

UITableViewDiffableDataSource with different objects

I am currently facing troubles using UITableViewDiffableDataSource. I would like to give a shot to this new feature, so I went on many tutorials on the net, but none of them seems to answer my...

RN fetch blob download docx or pdf from URL in IOS

What is done: Implemented in Android and its getting downloaded in specific DCIM directory in android. In ios using DocumentDir to download the pdf or docx file. Using "rn-fetch-blob":...

Invalid `Podfile` file: cannot load such file. /flutter/packages/flutter_tools/bin/podhelper

When I tried to test flutter project with a simulator after upgrading flutter, this error came up. Launching lib/main.dart on iPhone 11 Pro in debug mode... Running pod install... ...

Perform a deeplink from SwiftUI widget on tap

I have a simple widget (medium-sized) with two texts, and what I want is to be able to perform a deep link to lead the user to a specific section of my app, but I can't seem to find a way to do...

UICollectionViewCompositionLayout with auto-sizing cells containing a fixed ratio UIImageView

The goal is to configure a UICollectionViewCompositionalLayout for full-width cells which contain a fixed-aspect ratio UIImageView (plus some other views underneath including variable height...

How should the iOS 15.0.1 Safari collapsed/minimized address/URL/domain bar be handled?

It seems that window.innerHeight does not factor it in. This results in it overlaying content undesirably. See the screenshot below. 1st Gen iPhone SE I have tried using...