Resize font size to fill UITextView?

How would I set the font size of text in a UITextView such that it fills the entire UITextView? I'd like the user to type in their text, then have the text fill the entire UITextView. Any help is...

Hide, show annotation on MkMapView

How to hide annotation when zooming out the map view. I have a big number of annotation i have to hide them because if the region displayed on the map is too big you can see only the annotations.

How to set the Tab bar item 1 to be selected by default in iphone?

I am new to iPhone development. I am creating a view based application. I have added a tab bar in my view (and not a tab bar controller). By setting the tag vale of the tab bar item to 1, 2, I...

FBPermissionDialog bug, showing "Welcome to Facebook" page

I'm experiencing a weird bug that I can replicate pretty consistently with the FBConnect iPhone SDK, more specifically with the class FBPermissionDialog. The result is that instead of seeing the...

Bluetooth Link Key on the iPhone

Is there any way to get/know the stored Bluetooth link key from my iPhone device? Is it logged anywhere? Is it possible to dump the iPhone internal logs?

iOS - How can I get the IndexPath of the last item in a tableview?

I would like to automatically scroll to the end of a table view. [tableView scrollToRowAtIndexPath:lastIndexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES]; Given that I know...

How can I edit PDF files in an iOS application?

In my iPhone / iPad application, I show a person's medical reports in the form of a PDF. I have saved the reports in the documents directory and am reading them from there. I want the user to be...

iphone: Where the .dSYM file is located in crash report

According to this page here if you have proper application binary and .dSYM file then it is easy to symbolic them. But where are .dSYM and application binary files located?

Most efficient way to draw part of an image in iOS

Given an UIImage and a CGRect, what is the most efficient way (in memory and time) to draw the part of the image corresponding to the CGRect (without scaling)? For reference, this is how I...

Is it possible to detect when the "Minute" changes on the status bar clock?

I have a complex problem to describe so Ill save it and just sum up what im trying to do. I am looking to "get notified" when the time on the status bar changes so I can recalculate time till. I...

How to remove UIButton selected background color?

I am looking for a solution to this problem that does NOT require using images/PNGs. I am looking for a way to remove the UIButton's blue background color when it's in selected state, and I just...

Enable LED Torch for IOS App Alerts (Without enabling in iPhone System Settings)

So here's my problem: I have alerts come from my app fairly often. I've made it so they have a custom ring and vibration for when the alerts come. I want to be able to make their LED light flash...

How can I disable landscape orientation?

I am making an iPhone app and I need it to be in portrait mode, so if the user moves the device sideways, it does not automatically rotate. How can I do this?

Checking if device is iPad

What is wrong with this code? I want to be able to check if the current device the user is using is an iPad but it keeps giving me errors. if (UIUserInterfaceIdiom == UIUserInterfaceIdiomPad) { ...

locking views in Xcode storyboard

coming from a design background myself, I like to use the storyboard as much as I can before I jump into code. That being said, I was wondering if there is a feature in Xcode that enables locking...

Can I automate with webdriver an iOS web application from Windows PC?

I have seen on http://code.google.com/p/selenium/wiki/IPhoneDriver that to use selenium webdriver tests on a real device for UIWeb, you need the iphone SDK and a provisioning profile. I want to...

How do I add a new device for provisioning on the Apple Developer site when the button is disabled?

My add device button in prov. portal is grayed out (disabled) like in the screenshot: What am i doing wrong?

How can I use HTML5 download attr in iPhone using PhoneGap

I have a PhoneGap application that is working on Android. The app accesses mp3 audios from a server and plays for the user. It also uses HTML5 download feature to download any audio. I am now...

Not sending facebook game request/invite

I'm trying to implement Game Request/Invite. Facebook is not returning any errors and I can share status in the user timeline using the same game/app configuration. This is my code: //...

Dowloading a big file to iphone fills the ram memory - xcode

I have a problem when downloading a file. I have a zip file that has 90 MB and it is filling my RAM memory to hudge amounts until the file is downloaded. Could somene help me with some example...

Debug Ionic app on IOS?

My HTML5 app is packaged by Ionic (using Cordova) and loads onto my iPhone like a normal app. Can I debug whilst connected to the device? I know with Android you have logcat and in the browser I...

The app delegate must implement the window property if it wants to use a main storyboard file swift

I have just developed an app, but when running in the simulator the debugger console says: The app delegate must implement the window property if it wants to use a main storyboard file. I have...

NSSystemClockDidChangeNotification acts weird when app wakes up

In my app I'm registering a NSSystemClockDidChangeNotification notification in AppDelegate method application:application didFinishLaunchingWithOptions:options. Posted whenever the system clock...

Aligning image on right side of title on UIButton with imageEdgeInsets and titleEdgeInsets

I would like to add an image on the right side of the title something like this |Button [image]| |title | And I am able to achieve this by this code button.titleEdgeInsets =...

Find temperature unit from settings app

I am working on an iOS app in Swift 3, I need to get user preferred unit for temperature from settings app (Celsius or Fahrenheit). I tried finding a solution for it but no success. :( Can anyone...

Open web url link in browser in Swift

I want to load webpage that link I fetched through web service. I have tried myself but result is not in favour. From server I was getting this kind of...

iOS: Detect if the device is iPhone X family (frameless)

In my app there is some logic for frameless devices (iPhoneX, Xs Xs max, Xr). Currently it works base on the model of the devices, so, I detect the model by DeviceKit framework. But I want to...

How to get the iPhone's screen width in SwiftUI?

I want to resize an Image frame to be a square that takes the same width of the iPhone's screen and consequently the same value (screen width) for height. The following code don't work cause it...

Full screen background image on loginscreen in React Native app

I'm currently trying to set a full background image on my login view. I've used the following code to do so but noticed that Iphone 11 have like a white bar at the bottom and top of the phone. Is...

App crashes on iPhone 6, iOS 12.5 while testing in device using Xcode 13.2

Console: dyld: Symbol not found: ___chkstk_darwin Referenced from:...