Questions tagged [iphone]

DO NOT use this tag unless you are addressing Apple's iPhone and/or iPod touch specifically. For questions not dependent on hardware, use the tag [ios]. More tags to consider are [xcode] (but only if the question is about the IDE itself), [swift], [objective-c] or [cocoa-touch] (but not [cocoa]). Please refrain from questions regarding the iTunes App Store or about iTunes Connect. If using C#, tag with [mono].

iphone
46,432 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
52 votes
3 answers
2k views

How to callback NSStreamDelegate with NSStreamEventOpenCompleted?

I have been working on a NSStreamDelegate, I have implemented call back, I have initialized the input and output stream ilke this... CFReadStreamRef readStream; CFWriteStreamRef writeStream; ...
Newbee's user avatar
  • 3,271
50 votes
1 answer
623 views

Xcode 6 how to disable "Lost connection to iPhone" message when unplugging a device?

Upon upgrading to Xcode 6 every time I unplug a device that is running an app deployed and started from Xcode, I get the application-wide popup box saying "Lost connection to [device name]". ...
Alex Stone's user avatar
28 votes
1 answer
2k views

UIActivityViewController thinks my jpg is video when share by file URL

I have jpg files saved in the Documents directory that can be shared from a standard UIActivityViewController. All activity items (including Save Image) work as expected, but when Save Image is tapped,...
Paul B.'s user avatar
  • 458
21 votes
1 answer
932 views

LinkedIn in-app browser forcing video to fullscreen on iPhone

We are using LinkedIn to share a link to an HTML5 interactive video. When the link is shared, by default it opens in LinkedIn's browser inside the app. The problem is that when the user starts playing ...
Jussi Pölkki's user avatar
20 votes
0 answers
6k views

iOS Swift - How to use rectOfInterest correctly (barcode scanner)

I have an iOS App which scans a barcode. Now I wanted to define a specific scan area. For this purpose I am using the rectOfInterest property and metadataOutputRectOfInterest method. The problems I ...
beks6's user avatar
  • 234
20 votes
1 answer
1k views

Video file could not be opened due to movie's file format isn't recognized

I am trying to create a video file from images given by image magick library. After applying some effects one by one like opacity difference ,it iscreated successfully but the Quick time player gives ...
BADRI's user avatar
  • 643
20 votes
1 answer
3k views

How to make remote notifications work with CloudKit Subscriptions?

So far I was unable to make subscriptions to work. (receive a push notification on my device, subscriptions appears to be created successfully) I have been playing with [CloudKitAtlas][1]. I did what ...
dev_jac's user avatar
  • 855
18 votes
0 answers
1k views

Ant+ iphone adapter configure for any sensor

I am building an iPhone app for heart rate monitoring using ANT+ technology. This is the site But the issue is ANT+ iPhone adapters are manufactured by a few separate companies and they don't allow ...
Sameera Chathuranga's user avatar
18 votes
0 answers
2k views

Creating fat files: libtool vs lipo (Should I prefer lipo?)

I wonder what would be the difference when using: lipo -create i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a and libtool -static i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a ...
nacho4d's user avatar
  • 44.3k
17 votes
2 answers
6k views

iOS CoreBluetooth / iBeacon: Advertise an iBeacon and a peripheral service concurrently

I'm writing an application for iOS that requires that the application advertise both an iOS iBeacon as well as advertise peripheral service concurrently. It's necessary that the service is advertised ...
user2876951's user avatar
16 votes
0 answers
2k views

pageshow event on iphone fires only once

I'm trying to use pageshow event on safari (iphone) to fix some problems with back button cache. But it seems to work only one time when using back button. I have this handler on page A: window....
Bodzio's user avatar
  • 2,500
16 votes
0 answers
5k views

Detect ring/silent switch position change

I'm working on an app for which I would like to: respect the ring/silent switch when playing audio, and display an icon indicating that sound is muted when the ring/silent switch is set to silent. ...
ravron's user avatar
  • 11.1k
16 votes
1 answer
2k views

UIVideoEditorController lost video resolution

I am trying to use UIVideoEditorController to edit my video, but it seems to lose my video resolution. My original video was 720 x 1280, but after using the UIVideoEditorController, the quality ...
vodkhang's user avatar
  • 18.7k
15 votes
0 answers
836 views

How can we get Text that we Speak from Siri?

I am writing an app that include a scenario where I want a search using Siri like "Hey Siri, APP_NAME PHRASE" give any phrase using Siri and I need that PHRASE as Text to my app. I tried with custom ...
jo solution's user avatar
15 votes
2 answers
3k views

Error: 'Unsupported predicate in fetch options: mediaType == 2'

I'm trying to use smartAlbum to generate an array of either only videos or only photos or both. You can see my code below: PHFetchResult *collectionList = [PHCollectionList ...
Anish Kumar's user avatar
  • 1,465
15 votes
0 answers
7k views

Intercept Ajax calls in UIWebview - iOS

I have a UIWebView in my application. The website I am loading uses Ajax for making service calls. I want to intercept Ajax calls made by the web content inside the UIWebview. Is there anyway this ...
footyapps27's user avatar
  • 4,022
15 votes
2 answers
11k views

How can i display animated svg file in iOS without using UIWebView

Currently i am using UIWebView to display animated svg file in my native iOS application. This works fine except the CPU usage is constantly being on higher side as long as app is in foreground. ...
Mihir Mehta's user avatar
  • 13.8k
14 votes
4 answers
6k views

Xcode environment variables for sub projects

My current Xcode iOS project uses a number of static libraries. The different code modules in the static libraries have various levels of debug that I can switch on/off with #defines from within that ...
tomj's user avatar
  • 324
14 votes
2 answers
1k views

UICollectionViewFlowLayout with sections (but no section breaks)

I am using UICollectionViewFlowLayout currently very simply: UICollectionViewFlowLayout *flowLayout = [UICollectionViewFlowLayout alloc] init]; flowLayout.itemSize = CGSizeMake(75, 75); flowLayout....
Damien's user avatar
  • 2,421
13 votes
1 answer
4k views

.searchable SwiftUI on IOS 17 cause an error: invalid numeric value

Simulator: iPhone 15 with IOS 17 Xcode: Version 15.0 (15A240d) Simple example on just created project: import SwiftUI struct ContentView: View { @State private var searchText = "" ...
Sever's user avatar
  • 2,536
13 votes
0 answers
7k views

The App ID 'xxxx' appears to be in use by the App Store, so it can not be removed at this time

I have been using my own personal Apple account to test creating test provisional profiles etc a new ios app. I know have a proper work account we need to use for the app. I tried to add this to the ...
peterc's user avatar
  • 7,391
13 votes
1 answer
986 views

iOS App: Terminated due to memory issue [Related to swiftSlowAlloc or UIImage]

Currently I am facing a memory issue problem in building iOS app. I checked for Memory leaks using Instruments. I found that there is one kind of leaks that keeps on showing up named swift_slowAlloc, ...
Nasiba's user avatar
  • 321
13 votes
0 answers
2k views

How can I test if visit monitoring is working in my iOS app? (Using startMonitoringVisits api)

I'm developing a location journaling app for iPhone, and I'm trying to use the new visit monitoring API for iOS 8. I've read the Xcode documentation and watched a WWDC 2014 Video, and I think I've ...
ConfusedByCode's user avatar
13 votes
2 answers
6k views

How to access cellular data usage statistics per application programmatically in iphone?

I want to get cellular data usage details per application programmatically. Also, please note that, it should not be mandatory to be executed on jailbroken device. Please suggest some API.
Vinay Bagale's user avatar
  • 2,411
13 votes
1 answer
5k views

What means: libtool: -dynamic not specified the following flags are invalid: -ObjC

I inherited a project (lucky me!) which relies on a static library. Trying to build the static lib, I get this error: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: -...
Olie's user avatar
  • 24.7k
13 votes
1 answer
776 views

How can I inspect app-specific CloudKit data, or access data not accessible in iTunes App?

iOS has a method to expose some of the app data to the end user via iTunes. In addition, an application can store information in CloudKit that is only accessible to the app itself (and presumably not ...
makerofthings7's user avatar
13 votes
1 answer
5k views

AVAssetExportSession Error -11820

I'm writing an application that works with video using AVFoundation. The behaviour of my application is simple: I take a video from the camera roll, then I create an AVMutableComposition with some ...
Cri1682's user avatar
  • 513
12 votes
1 answer
2k views

iOS in app purchase receipt with different itunes user

I am using receipt validation locally on device and targeting iOS 7+ I am testing auto renew subscription in app purchase in the sandbox environment and I noticed this scenario. -User A is signed in ...
Dev_Sand's user avatar
  • 131
12 votes
1 answer
2k views

iBeacons generated under Mavericks OSX works but have some different bytes from iOS

I follow this sample project BeaconEmitter under OSX to generate samples iBeacons for develop an application on iPhone. BeaconEmitter application is based on the tutorial from Matthew Robinson, and ...
megabri's user avatar
  • 891
12 votes
3 answers
6k views

Assign ringtone to contact or group of contacts in iphone

I checked the documentation but could not find anywhere regarding assigning ringtone to a group of contacts programmatically. I was wondering is it even possible without using Private API and app ...
Janak Nirmal's user avatar
  • 22.7k
11 votes
0 answers
2k views

Is there a way to use the "ms-outlook://" URI in iOS to open a specific email message by id?

I am attempting to create a QR code that opens a specific email message in the Outlook App for iOS. I am specifically looking for something like: ms-outlook://messages/view?id=1dfffe43-0d4e-4130-...
Michael Stewart's user avatar
11 votes
0 answers
806 views

What settings do I use to capture a RAW in iOS without noise reduction but otherwise looking identical to BGRA?

We can either ask AVFoundation to capture a photo in a processed format like BGRA, or ask it to capture a RAW and then process it to BGRA using Core Image. The latter lets us control the parameters ...
Kartick Vaddadi's user avatar
11 votes
0 answers
3k views

Debugging Safari Error iPhone - Unable to Determine Cause

A particular web page causes Safari 9 to reload a few times, each time displaying a message "A problem occurred with this webpage so it was reloaded" then finally just give up only showing "A problem ...
GantTheWanderer's user avatar
11 votes
1 answer
3k views

UIActivityViewController - plugin net.whatsapp.WhatsApp.ShareExtension invalidated

I'm using UIActivityViewController and after sending an image via Whatsapp, I'm getting this message in the console - plugin net.whatsapp.WhatsApp.ShareExtension invalidated Why is this message ...
ozd's user avatar
  • 1,244
11 votes
1 answer
355 views

CATransition working wrong on orientation change before dismissing a NavigationViewController

Here is my code used to present a navigationViewController : -(IBAction)showFilterView:(id)sender { FilterViewController *vc=[self.storyboard instantiateViewControllerWithIdentifier:@"...
Saraswati's user avatar
  • 1,526
11 votes
0 answers
932 views

Subscription renewal not showing in latest_receipt_info

Our backend does server side receipt verification. In order to check the last expiration date for a renewable subscription, we look at the information in latest_receipt_info. This approach works most ...
MiguelCarranza's user avatar
11 votes
1 answer
6k views

Property "com.apple.security.application-groups in" not working in device

I have an application in that .entitlement file, I set com.apple.security.application-groups property and now application is not running in my iPad, with the following error message: The entitlements ...
Hitendra's user avatar
  • 1,610
11 votes
2 answers
2k views

Keeping UINavigationBar at same size while hiding status bar

I've been trying to keep UINavigationBar from moving/resizing when calling setNeedsStatusBarAppearanceUpdate. I want to keep the navigation bar at full 64px height when the status bar hides with ...
Cezary Wojcik's user avatar
11 votes
3 answers
2k views

How to enforce caching in AFNetworking despite cache headers

I want to enforce caching in AFNetworking even when cache header is Cache-Control:·private there are no other cache-relevant headers, I understand it will be a time-based cache and I do not have a ...
user1518779's user avatar
11 votes
1 answer
820 views

iOS5 openAL mute switch and volume controls

I am currently using openAL for audio playback in my app and having problems with the audio responding to the mute switch and audio volume controls in iOS 5. I have set up an audio session category ...
Jason Horsburgh's user avatar
11 votes
1 answer
5k views

How do I force a web page to ALWAYS be rendered with a pixel ratio of 1.0 (not 1.5) on iPhones and Androids?

For example, by default, iPhones and Androids will automatically zoom the page to attempt to make it fit nicely in the frame if no viewport meta tag exists. Web sites designed for desktops will be ...
trusktr's user avatar
  • 45.6k
11 votes
2 answers
2k views

UIScrollView changes content offset on presentModalViewController

A UIScrollView in my view hierarchy is acting funky whenever I present a modal view controller above it. It automatically adjusts the content offset and moves my content down about 40 pixels. I can't ...
Justin Milo's user avatar
11 votes
1 answer
4k views

Pause & resume video capture using AVCaptureMovieFileOutput and AVCaptureVideoDataOutput in iOS

I have to implement functionality to repeatedly pause and resume video capture in a single session, but have each new segment (the captured segments after each pause) added to the same video file, ...
Subhasis's user avatar
  • 111
11 votes
2 answers
7k views

Xcode loses connection to device while debugging

My app has recently started exhibiting a strange behaviour. When I build and run from Xcode, the app launches until it hits the transition from the animated launch screen to the main screen of my app. ...
buildsucceeded's user avatar
11 votes
1 answer
2k views

How to test restoring an in development iOS app from an iCloud backup?

I need to do some testing with how my app behaves after the device has been restored from a backup. Ideally I'd like to test my app after restoring from both a local iTunes backup and an iCloud ...
Josh Knauer's user avatar
  • 1,754
11 votes
2 answers
6k views

select all input value in input type number

i have this on a webpage. When a user click in the input element, i want the input elements value to be auto selected. I can do this by making onclick event to this.select() like shown below <...
DaCh's user avatar
  • 931
10 votes
0 answers
900 views

How to convert BoundingBox from VNRequest to CVPixelBuffer Coordinate

I try to crop a CVImageBuffer (from AVCaptureOutput) using the boundingBox of detected face from Vision (VNRequest). When I draw over the AVCaptureVideoPreviewLayer using : let origin = previewLayer....
Alak's user avatar
  • 1,329
10 votes
0 answers
3k views

Chrome/Android kills websockets running in background

Google Chrome in android(also iPhone) kills websocket connections after some time that oscillates between 20seg - 3min, depending on device. It also can't handle simple timers or intervals when ...
jenjibre's user avatar
  • 101
10 votes
4 answers
6k views

How can i force Swift Decimal Pad with dot instead of comma regardless of locale?

In Swift when we choose keyboard style as Decimal Pad, it appears with 10 numbers and separator depending on in what country you are. For example, in Russia, the default decimal separator is ',' while ...
Kam Lotfull's user avatar
10 votes
4 answers
3k views

Unexpected Replayer Termination

When i run my application in iOS 10.2 iPhone5 using Xcode 8.2.1, am getting following error message. Can any one help me to figure out why this error message is appeared
Vaisakh's user avatar
  • 2,929

1
2 3 4 5
929