Questions tagged [ipad]

iPad is a tablet computer designed by Apple running the iPadOS operating system. iPad applications are usually written in Objective-C or Swift in the Xcode IDE, although it is also possible to use other tools to build iPad applications. Questions that are not dependent on hardware should use the iOS tag instead.

ipad
Filter by
Sorted by
Tagged with
28 votes
6 answers
52k views

How to check the orientation of device programmatically in iPhone? [duplicate]

Possible Duplicate: iPhone orientation How to check the orientation of device at any point off time programmatically in iPhone ? Thank You.
suse's user avatar
  • 10.5k
28 votes
6 answers
14k views

Exclude pod when porting to mac with catalyst

Porting apps to mac is finally possible thanks to Catalyst, problem is, numerous pods don't support AppKit. Most common one would be Crashlytics / Firebase. In [...]/Pods/Crashlytics/iOS/Crashlytics....
Tancrede Chazallet's user avatar
26 votes
8 answers
28k views

How to recognize swipe in all 4 directions?

I need to recognize swipes in all directions (Up/Down/Left/Right). Not simultaneously, but I need to recognize them. I tried: UISwipeGestureRecognizer *Swipe = [[UISwipeGestureRecognizer alloc] ...
elp's user avatar
  • 8,091
22 votes
6 answers
10k views

Prevent scrolling in a MKMapView, also when zooming

The scrollEnabled seems to be breakable once the user starts pinching in a MKMapView. You still can't scroll with one finger, but if you scroll with two fingers while zooming in and out, you can move ...
Nils Munch's user avatar
  • 8,845
22 votes
2 answers
12k views

iOS deployment target

IF I set the deployment target for my app to iOS 4.2 when submitting to app store, will users with iOS 3.2 (or anything below 4.2) be able to download and install the app and the app won't run or will ...
Hetal Vora's user avatar
  • 3,351
22 votes
5 answers
22k views

Xcode 5 deployment target limited only to iOS 7

What should be done for me to have the deployment target lower that 7.0 in my project preferences? Now any new project I create using Xcode 5 can only be deployed to iOS 7.0. That's how it looks:
Sergey Grishchev's user avatar
21 votes
9 answers
10k views

Get launch orientation of iPad app

In my iPad app, I need to run some layout code to set the proper layout depending on the orientation. By default, the layout is configured for the landscape orientation, so in the case that the app ...
indragie's user avatar
  • 18.1k
21 votes
13 answers
51k views

Could not load NIB in bundle: 'NSBundle'

What is the error listed below? 2011-02-23 21:24:12.218 Success[7238:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: '...
James K.'s user avatar
  • 211
20 votes
3 answers
42k views

Select Multiple Images from Photo Library

I am going to ask that one question that perhaps has been already asked a million times. I am making an app for iPad and want to give users the ability to multi-select images from their photo-...
Sam B's user avatar
  • 27.4k
18 votes
3 answers
13k views

Handling standby on iPad using Javascript

Regarding iPad events, how to determine if/when the iPad is changing from an awake state to a standby state? What I would like to do is put my Mobile-Safari web app in a locked state whenever the ...
rcarrier's user avatar
  • 193
18 votes
2 answers
9k views

iOS Stream Audio from one iOS Device to Another

I get a song from the device iTunes library and shove it into an AVAsset: - (void)mediaPicker: (MPMediaPickerController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection { ...
spentak's user avatar
  • 4,677
17 votes
4 answers
18k views

iphone - How do I add videos to iPad simulator?

No, dropping the videos to ~/Library/Application Support/iPhone Simulator/3.2/Media/DCIM/100APPLE does not work totally, because the simulator can see the video on Photos.app, but when I try to pick ...
Duck's user avatar
  • 35.5k
16 votes
2 answers
6k views

Recreate recipient bubble behaviour in Mail.app / Three20

Krumelur asked this question about how create a recipient bubble similar to the mail.app. Please see screenshots below of what I mean: I can create the look of this element (including the look when ...
Luke's user avatar
  • 3,665
15 votes
1 answer
8k views

how to cache a whole web page with images in iOS

I am working on a image-text mixture page on iOS. I know it is possible for me to use UIWebView to achieve the goal. But the problem is, user may need to read the page offline. For the text part, I ...
mr.pppoe's user avatar
  • 3,945
14 votes
4 answers
16k views

Detect if headphones (not microphone) are plugged in to an iOS device [duplicate]

I need to change my audio depending on whether or not headphones are plugged in. I'm aware of kAudioSessionProperty_AudioInputAvailable, which will tell me if there's a microphone, but I'd like to ...
morgancodes's user avatar
  • 25.1k
14 votes
3 answers
23k views

How to create custom modal segue in 4.2 Xcode using storyboard [closed]

I'm using storyboard to create my new iPad project. I want use the custom modal segue to have better transitions between views. My question is how do I use the custom modal and is there any tutorials ...
TWcode's user avatar
  • 813
14 votes
1 answer
13k views

Program received signal: “0”. Data Formatters temporarily unavailable

I'm working on an iPad app that downloads a CSV file from the web and parses the file into a NSMutableArray. (I'm using the code from http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-...
Neal L's user avatar
  • 4,329
14 votes
1 answer
15k views

Bullet list and Numbered list in UITextView

Can any body tell me how to add bullet list and numbered list to the selected text in UITextView.
Prerna chavan's user avatar
14 votes
1 answer
16k views

Find available wi-fi networks

How can I find and list all the wi-fi networks in range?
NTTake's user avatar
  • 406
13 votes
11 answers
37k views

Jquery trigger click not working on safari browsers in mac, Ipad & Iphone

I am trying to trigger a click event on input type="file" on the click of an another button. Demo: http://jsfiddle.net/Y85g6/ It's working fine in all browsers except on safari browsers in mac, Ipad ...
Mandeep Pasbola's user avatar
12 votes
3 answers
28k views

How to disable 4 finger gestures on iPad?

I'm testing an iPad on iOS 4.3, which by default uses 4 finger (up/down) gestures to switch out of apps. This interferes with an on-screen piano keyboard I'm using, however, and want to remove this ...
obsoleteModel81's user avatar
12 votes
3 answers
31k views

Check for Internet connection using the iOS SDK [duplicate]

Which is the best way to check the Internet connection using the iOS SDK?
user831098's user avatar
  • 1,813
12 votes
1 answer
3k views

Can we add text, shape and signature in Photo Markup with Pencil Kit?

I am not getting any option to add text, shape and signature while markup a photo with PencelKit in my app. This option is available in Apple's Photos App. I have tried to access this with various ...
abhishek's user avatar
  • 121
11 votes
4 answers
10k views

UITextField in UITableViewCell Help

I have scoured the internet looking for a good tutorial or posting about having a UITableView populated with a UITextField in each cell for data entry. I want to keep track of each UITextField and ...
W Dyson's user avatar
  • 4,606
10 votes
2 answers
6k views

How to get user details using twitter api v1.1 (Twitter error 215)

I have used the twitter api provided by twitter,to get the details but not able to execute it, even tried to pass the authentication data like consumer secret key, consumer key, token but the result ...
Raviraj Jadeja's user avatar
9 votes
3 answers
10k views

Assigning an existing CGColor to a CGColor property works in iOS Simulator, not iOS device. Why?

I know how to fix the problem that I am about to outline, however, I am a bit baffled as to why the code scenario works in the iOS simulator but not on my iPad. I have a method that checks various ...
RLH's user avatar
  • 15.5k
8 votes
4 answers
6k views

UISearchDisplayController Without Dimming?

I am writing a SplitView iPad app. Inside the DetailViewController, there's a little view that contains a UITableView and a UISearchBar and its controller. This view does not represent the whole ...
Aloha Silver's user avatar
  • 1,394
7 votes
2 answers
18k views

How to insert 40000 records fast into an sqlite database in an iPad

I want to insert 40000 records that i get from a web service into a sqlite database in my iPad app. I wrote the following code, but it takes around 20 minutes, is there a faster way? - (NSArray *)...
OscarVGG's user avatar
  • 2,660
7 votes
2 answers
5k views

iOS print without allowing UIPrintInteractionController to appear

I am researching a potential app for a client, and I had a question I wasn't able to find the answer on. What I would like to do is print automatically, without having the UIPrintInteractionController ...
coder's user avatar
  • 10.5k
7 votes
4 answers
5k views

Cocos2D 2.0 screenshots on iOS 6

I have an application that takes a screenshot of a scene and saves it to a file. I have this working and the application is on the store. Today, I have downloaded iOS 6 and the method I am using is ...
Duck's user avatar
  • 35.5k
6 votes
4 answers
13k views

Customization of UINavigationBar and the back button

I followed the tutorial below to customize the UINavigationBar. http://foobarpig.com/iphone/uinavigationbar-with-solid-color-or-image-background.html I applied a background image in the ...
user403015's user avatar
  • 7,229
6 votes
11 answers
12k views

iPad 2 detection

Since I don't have iPad 2, I need to know what it returns when calling [[UIDevice currentDevice] model]. I thought it returns just "iPad" but it seems I'm wrong. Can somebody let me know? Thanks
Martin's user avatar
  • 69
6 votes
6 answers
22k views

PDF Viewer iPad App [closed]

I'm looking to develop a custom PDF viewer for an iPad, which has features like: bookmarks search deep linking zoom jump to specific page Does anyone know a code solution similar to this? I'm ...
wajiw's user avatar
  • 12.3k
6 votes
2 answers
8k views

iPad - More than one UITableView in the same screen

I coding app from iPad and I have to put two separate UITableView in the same screen. For this app I can´t put the UITableView and divid in two sections for requisits reason. It must be two separated. ...
rwvaldivia's user avatar
5 votes
2 answers
12k views

Playing many different videos on iphone using AVPlayer

I'm working on a custom video player for iOS using AVFoundation. The idea is to be able to switch to a different video with a gesture (tap, swipe, whatever). Right now the player is working flawlessly ...
Samssonart's user avatar
  • 3,513
5 votes
2 answers
3k views

Switch universal app to iPhone only app

I have Universal app uploaded on app store, Later based on requirements I have decided to revamp my entire app with iPhone only, so I have created new project in Xcode(with same bundle id) Now when ...
Krunal's user avatar
  • 6,460
5 votes
2 answers
8k views

change color navigation controller in a popover

I'm having a problem with trying to change the colour of my navigation controller inside my popoverController. I'm trying to do something like this: if (self.popoverController == nil) { ...
TurboManolo's user avatar
5 votes
2 answers
4k views

How to register an app to respond to a custom URL scheme opening request?

Like this: NSString *stringURL = @"appname://"; NSURL *url = [NSURL URLWithString:stringURL]; [[UIApplication sharedApplication] openURL:url]; I slightly remember it was necessary to write a value-...
openfrog's user avatar
  • 40.5k
4 votes
5 answers
9k views

iOS SDK : playing music on the background and switching views

I am trying to play music in my application. The music works fine but after switching viewControllers and returning to the main menu, my music plays again! It means several identical sounds play ...
iOS.Lover's user avatar
  • 5,981
4 votes
2 answers
3k views

Reading text and images from a pdf document in iOS

I'm displaying locally stored pdf in my iPad application. Here's the code: NSString *path = [[NSBundle mainBundle] pathForResource:@"About Downloads" ofType:@"pdf"]; NSURL *targetURL = [NSURL ...
Mustafa's user avatar
  • 20.6k
4 votes
4 answers
8k views

iOS 5 pauses JavaScript when tab is not active

I have a problem specific to iOS 5 and same code works in ios 4.X and other desktop browsers. I am using JavaScript to do some stuff every few seconds, now the problem is when I switch to another tab ...
Anil Shahu's user avatar
3 votes
1 answer
4k views

Received memory warning on setimage

This problem has completely stumped me. This is for iOS 5.0 with Xcode 4.2 What's going on is that in my app I let user select images from their photo album and I save those images to apps document ...
Sam B's user avatar
  • 27.4k
2 votes
4 answers
3k views

Navigate to a SplitViewController

I've been playing around with the iPad SDK looking for ways to improve my current iPhone app. I've got a couple place where I think the new "SplitView" would look pretty good. My question is if it's ...
Staros's user avatar
  • 3,252
2 votes
1 answer
4k views

ios: turn on/off airplane mode from code for iPhone / iPad [duplicate]

Possible Duplicate: Activate airplane mode programatically? is there a way to turn on/off airplane mode in ios (>4.x) from code? I am looking for some (offical) API calls... Greetings, Marco
Nando Lambrusco's user avatar
2 votes
2 answers
538 views

NSDateFormatter producing (null) SQLite and iOS 5.1

Maybe somebody can help explain why I am getting a null value when converting a string to a date. It all looks right but I'm obviously missing something here. Some background: This iPad app will be ...
GeoffCoope's user avatar
2 votes
13 answers
23k views

Application failed codesign verification. What do I do?

Xcode gives me this warning when I build the app for release. Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)...
Defender Of The Code's user avatar
1 vote
1 answer
207 views

Strange constraints behaviour on iPad

I try to do one of the simples things ever and get a strange result. I have a UIViewController with one UIImageView inside I set the constraints like follow And I get the following result My ...
Eike's user avatar
  • 2,401
1 vote
1 answer
3k views

how to fit pdf page in entire view

i read pdf files and also displayed, the code is like this: - (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { NSLog(@"the layer height %d, %d,%d ,%d",layer.bounds.size.width,layer....
ajay's user avatar
  • 3,285
0 votes
2 answers
1k views

Want to add manual erasing option in ipad painting application by Quartz

I am working on a painting application using Quartz 2D for ipad. Now I want to add an eraser option so that user can manually erase portion of his drawn line with touch.I have also background image. ...
outsider's user avatar
514 votes
8 answers
157k views

iPad Multitasking support requires these orientations

I'm trying to submit my universal iOS 9 apps to Apple (built with Xcode 7 GM) but I receive this error message for the bundle in iTunes Connect, just when I select Submit for Review: Invalid Bundle. ...
Cosmin's user avatar
  • 6,833

1
5 6
7
8 9
92