FAQ Database Discussion Community


Ideal memory usage amounts for iOS apps

ios,iphone,ipad,memory-management
What ranges could be considered Low, Medium, and High in memory usage? As my app becomes more complex, I notice this number getting higher. I've been trying to use this number as an indicator to how efficiently I'm coding but I've realized I have no bar to compare it with....

Xcode 6 Universal storyboard NSKeyedUnarchiver initForReadingWithData error

ios,ipad,ios7,universal-storyboard
I've migrated my project from iOS 7 to iOS 8 keeping iOS 7 support. Since i've redone all the graphics i've thrown away the old storyboard and created a new one using the new universal storyboard and size classes. Everything works fine for iOS 8 iPhone/iPad and iOS 7 iPhone...

Swift iOS solution for multiple/relational drop down pickers

ios,iphone,swift,ipad
I am new to programming iOS and I am not sure on how to implement multiple/relational drop down pickers into my design. I have a search form in my app that works like a panel-menu. If you click on the search icon then the panel slides in with the search...

Values entered in custom UITableViewCell UITextField translated to other fields

ios,objective-c,uitableview,ipad
So, this is going to be a very strange problem to address. I will try to be as specific as possible. Here is a snippet from my UITableViewController: - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"miscCell"; JASMiscConfigurationTableViewCell *cell = ((JASMiscConfigurationTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier]); if (cell ==...

Parse a XML file in a specified format iOS

ios,objective-c,iphone,xml,ipad
Is there anyway through through which I can parse this XML file that is in this following format:- <?xml version="1.0" encoding="utf-8"?> <CountryList> <Country CountryId="AF">Afghanistan</Country> <Country CountryId="AX">Akrotiri</Country> <Country CountryId="AL">Albania</Country> ........................................... ........................................... I need the Country ID and the name:- i.e "AL" and "Albania" , So, is it possible to parse specified...

Play multiple audios on Ipad or touch devices

javascript,jquery,html,html5,ipad
How to play multiple audio on ipad at same time i have tried following code but it doe not plays multiple audio <audio id="audioId" src="music.mp3">Play audio</audio> <audio id="audioId1" src="intro.mp3">Play audio</audio> <script> document.getElementById("audioId").play(); document.getElementById("audioId1").play(); </script> The above code does not play both audios on IPAD...

Flurry -retransmitNotSentBlocks Crash

ios,objective-c,ipad,flurry-analytics
Recently came across this issue with the Flurry SDK. After restarting an app quickly a few times it would begin to Crash at launch, disabling Flurry fixed the issue temporarily. The problematic method seems to be [FlurryDataSender retransmitNotSentBlocks] trying to insert a nil object into an array. Any ideas? ...

'NSInternalInconsistencyException' ?'The layout constraints still need update after sending

ios,ipad,crash,runtime-error,uialertview
I am facing a problem, i have a forgot password option in which i have placed a uialertview with input field. UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Forgot Password?" message:@"Please enter your username to retrieve password" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil]; [alertView setAlertViewStyle:UIAlertViewStylePlainTextInput]; [alertView show]; when app is launch it works fine...

In-app purchase sandbox server returning multiple transactions for one receipt

ios,iphone,ipad,in-app-purchase,storekit
Right now, when I send a receipt to the sandbox server (sandbox.itunes.apple.com) for one transaction, I am returned information for all of the transactions associated with the Apple account. Is this expected behavior? Is anyone else experiencing this?

How to get videos from iPhone without using asset library?

ios,objective-c,iphone,ipad
- (void)showVideoList { [self buildAssetsLibrary]; } - (void)buildAssetsLibrary { assetsLibrary = [[ALAssetsLibrary alloc] init]; ALAssetsLibrary *notificationSender = nil; videoURLArray = [[NSMutableArray alloc] init]; NSString *minimumSystemVersion = @"4.1"; NSString *systemVersion = [[UIDevice currentDevice] systemVersion]; if ([systemVersion compare:minimumSystemVersion options:NSNumericSearch] != NSOrderedAscending) notificationSender = assetsLibrary; [[NSNotificationCenter defaultCenter] addObserver:self...

How to implement long time background task on iOS

ios,iphone,ipad,swift
I've searched this for a while, but I cannot find a clear guide with what SDK to use and what steps to follow. It seems I should first register my usage in Info.plist, and I can use something like NSTimer to achieve it. Is this correct? Some material mention only...

How to add functionality to storyboard for specific devices?

ios,xcode,swift,ipad,storyboard
I am using the Xcode version 6.3.2, which is the most recent one at the moment. I already have an working iPhone application, build with that very same version of Xcode. It contains a page view controller inside a standard view controller. Moreover it provides the user a settings page...

YouTube html5player won't play on iPad safari; protocol and port exception

ipad,iframe,youtube,youtube-api
I have a strange error occurring only on safari for iPads. I've added a youtube iframe element to the page that looks like this. <iframe width="560" height="315" src="http://www.youtube.com/embed/dDAB35SYIr0?rel=0" frameborder="0" allowfullscreen></iframe> As you can see I say the source is http and my site is http as well. Now on iPad...

Bluetooth: how to let ios attempt “App Not Installed”

ios,iphone,ipad,bluetooth
I am doing something by Nordic nrf51822 BLE solution, is there any idea to let ios(iphone/ipad) attempt dedicated app is not installed after ble device pair to the iphone or ipad(like the attachment picture)? I search the internet and many forums, no found similar use case. But in Logitech bluetooth...

How to resize image assets for all Apple devices? (not launch images)

ios,iphone,ipad,uiimageview,assets
My app displays 2 buttons on the top and a car picture (1 of 4 possible) at the bottom: Each image file has huge dimensions of 5616 x 3744 pixels and the app lags noticeably and also sometimes crashes (here fullscreen, Aspect Fill mode is used): So I would like...

How do I support an attachable keyboard on ipad when building a touch keypad?

ios,iphone,ipad,ios8
I'm currently developing a touch keypad for iPhone/iPad ( like the one you use to unlock your device ). But I'm having trouble finding documentation on how I can support a 3rd party attachable keyboard for iPad, and make sure it's inputs translate to the touch pad. Does anyone know...

images work for iPad Retina simulator but not for iPad Air

ios,ipad,user-interface,retina-display
Xcode 6.1.1: Running in iPad Retina simulator, everything looks great. Correct scale, etc. But when running in iPad Air simulator, graphics and positioning are all half of what they should be. Why would it work in one and not the other? Aren't iPad Retina and iPad Air pretty much the...

Fullscreen background-image with jQuery and Animation

jquery,ios,ipad
I am using background-size: cover on an iPad to display a fullscreen background-image. On .click(function(){ $(this).addClass('example') }); the div changes its size. So first we got: position: absolute; height: 100%; width: 100%; and afterwards we got something like height: 50%; width: 50%; Then, on another click the sizes changes back...

Is it possible to obtain an unique iCloud user ID on cocoa?

ios,iphone,cocoa,ipad,icloud
My iOS app is currently on beta in TestFlight, and as a way to retribute to the nice people who helped me test it I would like to offer them some goodies such as, for instance, the full final version of the app for free. For this, I was thinking...

UITextField Stops Responding To Touches

ios,objective-c,ipad
I have a storyboard with a UIView with two UITextFields within it. When I navigate back to the controller the UITextFields no longer respond to touch. I am navigating to the controller like this UIViewController* controller = [self rootNavigationController].storyboard] instantiateViewControllerWithIdentifier:@"mycontroller"]; for some reason once I do this, they stop responding....

How do I go about creating a javascript ipad app that uses local storage?

javascript,ios,ipad
I need to create an internal admin app. The app needs to be able to: For V1 - Wrap and execute javascript code - Will not rely on any iOS code other than perhaps the code necessary to load the javascript. - Uses local storage For V2 - Work offline...

sproutvideo play button doesn't work on apple devices

javascript,jquery,ios,iphone,ipad
Hello I use sproutvideo to store videos, I tried to set up a control bar using jQuery UI, but the play button does not work on Apple devices like iphone and ipad, can any one help me please. This is is the working link http://sproutvideo-examples.s3.amazonaws.com/custom_player/final/index.html And this is the code...

How can data be stored on an iPhone/iPad based on data volume?

ios,ipad,core-data,data-storage,nscoding
I am to make a app which will connect to a remote DB server and fetch images and product descriptions as text. Each product will have 3-5 images. How is the best way to store the data I have got from the web server? Using NSUserDefault wont work, because I...

iPad Offline Web App with Multiple Entries

ios,html5,ipad,local-storage
I've found a ton of information on LocalStorage with HTML5 but they all focus on persistent single entries being saved. I need to be able to have a contact form (simple name/email/phone) that gets saved to the iPad and then allows another person to submit an entry to save to...

knockoutjs data-bind =“tap:controller.method.bind()” is not firing in mobile/ipad

html5,ipad,knockout.js
I have HTML page,different controllers and viewmodels. In html file, I have a button and tap event as shown below. <a href="#" data-bind="visible: gameIsReady(),tap: controller.handleStartButtonClick.bind(controller),event:{ mousedown: $root.controller.buttonActivate.bind($root.controller),mouseup: $root.controller.buttonDeactivate.bind($root.controller)}"></a> Based on the template, the event hits the particular controller and a method in it. It works as expected in desktop. But...

touchesEnded not called if i do not move finger

ios,ipad,swift,touches
I have a simple piece of code in which i have overridden touchesBegan,Ended,Cancelled(empty block) and touchesMoved. If i click ( i'm testing on Desktop PC ) with the mouse touchesBegan it's called, but touchesEnded is called only when i move finger for a while. That makes impossible to recognize a...

share extension showing only under the more section in UIActivityViewController?

ios,iphone,ipad,ios8-share-extension
I had an application in which i made a share extension.But My point is For the first time it is coming only in the more section of the UIActivityViewController.not coming independently like Facebook or twitter.Can anybody help me on this issue to find out anything missing in my configuration..

iOS pjsip video: get correct orientation

ios,iphone,ipad,pjsip
using pjsip 2.3.0 I am able to start video call. the only issue is the video orientation. the app supports all orientation on the ipad and portrait only on iphone. after rotating the ipad during video call, the iphone has video view which is not correctly oriented. I know that...

iPhone app on iPad compatibility mode has strange layout in landscape (while I force portrait)

ios,iphone,ipad,ios8,uiinterfaceorientation
The Problem As you can see, my iPhone app has a very strange layout when starting on iPad in landscape mode. I force the orientation of the app to portrait, but only on the iPad in landscape mode (when I start the app) seems to put the view 90 degrees...

Does tapping an tag with an iPad trigger CSS :focus status?

css,ipad,focus
I have a dropdown which uses CSS a#hoverlink:hover+div to make a div to appear, then you can click a link in the div. On Android, when you click the hoverlink, it triggers :hover so this works fine. I heard this isn't working in an iPad. How can I make it...

Getting incorrect screen resolution for IPAD Air

ios,objective-c,ipad,screen-resolution
I have written code to get the screen resolution like this. CGRect screenRect = [[UIScreen mainScreen] bounds]; CGFloat screenWidth = screenRect.size.width; CGFloat screenHeight = screenRect.size.height; The result of IPAD Air is like this for above code. screenWidth is ------->>> 1024.000000 screenHeight is ------->>> 768.000000 But the actual size is this...

iOS Getting initial device orientation with accelerometer

ios,iphone,ipad,opengl-es
I am working in an OpenGL ES game, c++ and iOS. I would like that the canvas axes be always as in default portait orientation, and also be able to know which is the initial device orientation and all the orientation changes. The problem I have is that if I...

How can I add tag value in sender while creating an UICollectionViewCell?

ios,iphone,xcode,swift,ipad
I'm very noob with swift, so i Have a question for solve a trouble in my app. In a UIView i have just added a Collection View as a Sub View, then in each cell I added a different IMAGE inside a "Wrapper View", so my question is... How can...

Navigation Tab Bar Controller to UIView Controller?

ios,objective-c,iphone,ipad
I am using tab bar controller and i want to push uiview controller over tab bar controller. but i don't know how we push UIView controller over Tab Bar Controller. Thanks

UITableViewCell background colour different then what I inputted

ios,xcode,uitableview,ipad,interface-builder
I'm having an issue where the iPad version of my app is giving me a different UITableViewCell background colour than the one that I've inputted. Here is the colour of the background colour: Here is the iPhone screen that is showing the correct background colour: And here is the iPad's...

Issues coming after IOS 8 update

iphone,ipad,ios8
There is a flickering of screen appears when we open the app after splash screen. And it shows the home screen for a second and then the login screen appears. It was not happening before IOS 8. Any idea why it would be happening. Another thing the API response has...

Showing MapKit “Map loading error” in Objective C

ios,objective-c,iphone,ipad,ios8
I am using Mapkit using objective c, i want to show "Error alert" on map. When Internet working, its working fine but When Internet not working properly then its showing automatically on log "request time out" with out calling "mapViewDidFailLoadingMap" delegate method. Code Here: - (void)viewDidLoad { [super viewDidLoad]; //...

Can we create iOS app with swift and obj c both?

ios,objective-c,iphone,ipad,swift
Can we create iOS app with swift and obj c both.My half app is made using OBJ-C and just want to improve apps performance so is that possible to use swift in between

Javascript .Focus causing safari 8.1.3 to crash only on IPad

javascript,ios,ipad,safari
Web App Technology: Asp.Net 4.5 The following snippet of javascript causes Safari (update 8.1.3) to crash. However it worked fine on the previous safari version. The code just resets focus to control after server request. Note: this works fine in Chrome, IE, and FF. var TFoc_Id function EndRequestHandler() { try...

Firebase initWithUrl crashes on iOS 5.1

ios,ipad,firebase,ios5.1
I'm developing a Firebase app to use on my old iPad first generation (iOS 5.1.1). It works fine on the simulator and on other devices but, when I load it on the iPad to test, I receive a crash like this one: #0 0x33860f86 in objc_msgSend () #1 0x33862f94 in...

How can you create a paging effect in JS similar to the iOS home screen?

javascript,jquery,ios,css,ipad
I am trying to create a website for tablet with a navigation where the user swipes between pages. The site will be viewed only on iOS devices. I have tried one approach where I move the page in relation to the touch location, then on touchend scrollLeft the container to...

adding calendar event in performFetchWithCompletionHandler

ios,iphone,ipad,ios7,ios8
I am trying to add calendar event in -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler based on some data app received for creating a calendar event. My problem is : the code for creating calendar event runs without any issue but, the event does not shows up on calendar. when i bring the...

AirPrint on the iPad [duplicate]

ios,ipad,airprint
This question is an exact duplicate of: UIPrintInteractionController not displaying in iPad 2 answers Before I get started. Yes I have looked in Apple documentation and I have saw all the questions similarly asked on here. But for some reason, those answers don't work with me. I am looking...

iPad SearchViewController crash _PFArray objectAtIndex beyond bounds

ios,objective-c,ipad,core-data,uisearchresultscontroller
I'm working on the iPad version of my application and I'm facing a strange problem. Here's the structure of the application: UISplitViewController ->MasterViewController -->NavigationController --->TableViewController ---->PrototypeCells --->SearchDisplayController ->DetailViewController -->NavigationController --->TableViewController ---->StaticCells Basically, the application is displaying like 40 000 rows with CoreData and fetchResultController on the MasterView. Users can search...

UIViewController displayed sideways on AirPlay screen when launched from landscape iPad

ios,objective-c,ipad,airplay
I'm attempting to display a full screen, 16:9, UIViewController on an external display using AirPlay. The goal here is to replace AirPlay mirroring with a custom view controller that will span the full size of the external screen. Everything seems to work great when the screen connects while the iPad...

An app that just reads a bar code

ipad,barcode,reader
I want to develop an app that just reads a bar code. I don't want it to go off to a website or shop or anything. Just read it! It must run on iPad Air. I have seen zbar and a few other suggestions but I want to be sure...

Locking orientation issue in iphone

ios,objective-c,iphone,ipad,uiinterfaceorientation
I have a structure like this LoginViewController-->Root LoginViewController-->UINav---->HomeViewController Now I have to lock this orientation to portrait only for iphone and have to provide both orientation for ipad For the Login Controller I wrote this -(BOOL)shouldAutorotate{ if(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad) { return YES; } else { return NO; } } This is working...

Autolayout does not use size classes when using a custom font

iphone,ipad,fonts,ios8,autolayout
i am developing a Swift iOS8 app for iPad & iPhone using autolayout. I am using a Custom Font (OpenSans) for my UILabels. When i declare specific font sizes for specific size classes (e.g. Regular Height, Compact Width) in the storyboard, the resulting font sizes look fine on the iPhone...

How to delete a viewcontroller from a split view controller (ipad back button )?

ios,objective-c,ipad,back
I have used the following code for deleting my login page from the navigationcontroller(viewcontrollers) so that it will not come into the view again when going back(back button). if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { NSMutableArray *VCs = [NSMutableArray arrayWithArray: self.navigationController.viewControllers]; if ([[VCs objectAtIndex:[VCs count] - 2] isKindOfClass:[loginViewController class]]&&(VCs.count>=4)) { [VCs removeObjectAtIndex:[VCs count]...

UITextView not resizing correctly on iPad only

ios,objective-c,ipad,autolayout,uitextview
I have a static UITableView with 3 rows in 1 section. Each row contains a UITextView that should resize based on the content. Each of the UITextView objects has scrolling disabled to force it to grow. Each is pinned on all 4 sides to the cell's contentView and has no...

Why my UIActionSheet suddenly cutoff at the bottom of the device (iOS 8)?

ios,xcode,ipad
I have some very standard code for UIActionSheet that works well on production. -(void) showGameMenu { UIActionSheet * const activeSheet = [[UIActionSheet alloc] initWithTitle:@"Game" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"New Game", @"Save Game", @"Load Game", @"Email Game", @"Share Position", @"Setup Position", nil]; [activeSheet setTag:Framework::GameMenuButton]; [self showActionSheetOnToolbar:activeSheet]; } -(void) showActionSheetOnToolbar:(UIActionSheet *)sheet { [sheet...

Rotate iPad and AdMob to not load again, like iAds

ios,objective-c,ipad,admob,iad
I am implementing iAd and AdMob banners into my app. On the iPad I'm getting some weird issues when the device rotates, specifically with AdMob. With iAds, the banner remains on the bottom of the screen when the device rotates and doesn't reload the ad. With AdMob however, it reloads...

local notification are sent at wrong time

ios,objective-c,iphone,ipad,uilocalnotification
I want to sent 2 local notifications daily at a particular time in iOS, But notifications are sent at wrong time and also it sends multiple times in day and not once, Here is my code snippet, - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // are you running on iOS8? if...

Swift - Allow Rotation on iPad Only

ios,swift,ipad
How could I allow my universal app written in Swift on iOS 8.3 SDK to support only portrait mode on iPhone, but both portrait and landscape mode on iPad? I know in the past this has been done in AppDelegate. How could I do this in Swift?...

AirBnb iPad app - UITableView over image?

ios,uitableview,ipad,swift,uiscrollview
AirBnb just came out with their first ever iPad app, it's really slick. There's a UITableView over an background image (which is a UIScrollView itself). Does anyone have ideas on how to implement it? I assume it's something to do with checking scroll settings? Here's a screenshot: ...

Calculating height of the UITableViewCell that is dependent on the cell width and image loaded asynchronously

ios,objective-c,iphone,uitableview,ipad
How to properly calculate the height of the UITableViewCell when this height is based on the table cell width. I'm trying to put code in heightForRowAtIndexPath method but trying to get reference for the cell in this method is impossible because it generate infinite loop. In my cell I'm loading...

iCarousel view not showing up in ipad

ios,ipad,carousel
I am making an ios application on ipad and i am putting a iCarousel view in my application by the help of this script : http://www.theappguruz.com/tutorial/how-to-use-icarousel-view-controller-in-ios/ and when i complete all the steps and run this application on ipad it doesn't show me anything but when i run this application...

Is there a good tool to deploy and update an iOS app that is meant to be part of a larger product?

ios,ipad,mdm,ios-enterprise,apple-configurator
I am currently working on a project that uses an iPad as the interface for the the product we are making. There is an external accessory feeding the iPad sensor data and the iPad will need to be on the business that buys our product's wifi. The concern I have...

Checking iOS device Orientation

ios,iphone,ipad,xcode6
I need to get orientation of iOS device for each time iOS device changes orientation remember not on launch of app or at loading time, for every single time device change orientation i need to register it .

How to add a view/gesture recognisers to iPhone/iPad home Screen

ios,objective-c,iphone,ipad
Until today I believed that it's impossible but there is an app is called Shou from the Emu4iOS Store that record your screen and even if the app is in background there is a view on home screen that on touch redirect you to the app. (please see attached image)...

Is it possible to inspect iPhone/iPad app in desktop?

iphone,osx,ipad
I know that for Anroid it's possible to use Chrome://inspect to view the phone screen on your desktop. Clicking there is equal to tapping on the phone. It's fine for browsers and after 4.4 - for apps that have some special lines of code inserted. Whether it's possible for iPhone...

Can not Identify the crash Exception Type: EXC_CRASH (SIGABRT) . Crash log included

ios,ipad,crash,ios8.3
I can not identify the problem from this crash log. I have seen several post about EXC_CRASH (SIGABRT) and CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER but those didn't help either.This happens in OS Version:iOS 8.3 (12F69) and in iPad2. Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 0 Last Exception Backtrace: 0...

text wrap issue with Safari on iOS iPad

html,ios,css,ipad,safari
I have got a browser specific design issue with Safari iOS (using ipad). phone icon which I placed in the label field for that menu, bumps up to a second line. It is working fine other browser. I tried with white-space:nowrap CSS. but that doesn’t work. So I am not...

Why is iPad window width read as 1024?

jquery,ipad
The display specs for an iPad Air 2 are 2048 x 1536 but when a loaded page does a $( window ).width() to get the viewport width it comes back as 1024. Does anyone know what's going on here? Thanks....

iPhone app on iPad: drawViewHierarchyInRect causes glitch

ios,objective-c,iphone,xcode,ipad
Running an iPhone app on iPad (iOS 8), using drawViewHierarchyInRect to take a snapshot and do a custom animation between two view controllers. It all runs fine on iPhones but when the app is on iPad (not a universal app, iPhone only) you can see a brief glimpse of a...

Objective-C: Why do I get an EXC_BAD_ACCESS exception when calling objc_msgSend with a parameter?

ios,objective-c,iphone,ipad,exc-bad-access
I have got some problem while working on my own Button class in Sprite Kit / iOS 7.0. As soon as I try to call back the method with "objc_msgSend" I get the following error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x8) Here's my Button class, where "identifier" is given back to...

Using an iPad as the networked Mac for Xamarin.iOS for Visual Studio

c#,ios,ipad,visual-studio-2012,xamarin
This guide explains how to use Xamarin.iOS for Visual Studio and a network available Mac as the host for Apple's complier: http://developer.xamarin.com/guides/ios/getting_started/installation/windows/introduction_to_xamarin_ios_for_visual_studio/ It is possible to use an iPad as the networked Apple compliler?...

detect If user exits application from homescreen

ios,iphone,ipad
i am new to iOS development I want to do some task if user exits application from homescreen Is there any way in which we can determine ? Please help, and thanks in advance !!...

How to design an iOS app which runs only in landscape mode in ipad and portrait in iPhone?

objective-c,iphone,ipad,storyboard,orientation
I am new to iOS development.I am making an app which runs on iPad and iPhone.I am using universal storyboard.I want the phone to work only in portrait mode and iPad to work only in landscape mode.How to do the design for ipad in landscape?Can we rotate the storyboard and...

MKAnnotation setImage works on iPhone, but not iPad/iPhone 6+

ios,ipad,mkmapview,mkannotation,mkannotationview
I am trying to set a custom image for an MKPointAnnotation in my MKMapView. The images are set correctly on all iPhones except for 6+: But on iPhone 6+ and iPad, the annotation has the default pin instead of my picture: Below is the code that sets the image of...

How to serve my own iOS ipa (ipad install) file?

php,ios,ipad,ipa
Does anyone know how to serve my own files like TestFlight or Diawi ? I used Firefox web developer tools to let me pick up the header information (from Diawi) then used PHP to set header and readfile to output but this has failed - I have also tried to...

How do I set the detail view pane title the name of the currently selected cell?

ios,objective-c,xcode,ipad,master-detail
Simple enough in my head? Select Cell - Set DETAILS panel title to name of currently selected cell. If you need any other files, please let me know. Any help would be greatly appreciated!! My MasterViewController.h is as follows #import "MasterViewController.h" #import "DetailViewController.h" #import "TableViewCell.h" @interface MasterViewController () @property NSMutableArray...

Adaptive layout for iPad

ios,swift,ipad,autolayout,size-classes
I am following this article for building adaptive layout in ios Building Adaptive User Interfaces for iOS 8. It will work fine on iPhones . Now i wan't to give the same effect on iPad. But for iPad adaptive layout is not work. Here is screenshot of application in iPhone5...

Has anyone faced Geolocation permission alert for iOS showing twice issue along with bundle location?

ios,cordova,ipad,geolocation,phonegap-build
Geolocation permission alert for iOS showing twice along with bundle location . I have tried by installing latest plugin and other similar answers provided for this Even used below key in info.plist "NSLocationAlwaysUsageDescription" But still I m getting below error: "private/var/mobile/Containers/Bundle/Application/0846B1D6-02AB-4846-ACD2-F722214B9015/myapp.app/www/index.html" in iOS phone gap project. Can any one suggest...

Call a function repeatedly in fixed interval of time in background when the app is not running

ios,objective-c,iphone,ipad,ios5
My need is to check if the mobile is connected to the same WIFI network repeatedly in 10 seconds interval time when then app is not running. Can it be coded in the below method :- - (void)applicationWillResignActive:(UIApplication *)application And how can it be achieved ??...

GLSL small float value truncation starting from iPad Air

ios,ipad,opengl-es,glsl
In my attempts of fixing the liquid simualtion app that works fine on iPad3(PowerVR SGX543MP4, iOS 8.1) and older hardware but fails on iPad Air(PowerVR G6430, iOS 8.1)... I stumbled upon quite "curious" handling of small floating point values on latter. It boiled down to such test case: Fragment Shader...

How can I simulate an iPhone app running on an iPad?

ios,iphone,xcode,ipad,appstore-approval
My app keeps getting rejected from the app store based on this rule: 2.10 iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution I'm trying to figure out how I can test whether my fix is working. How can I simulate...

jQuery .show issue (Safari iPad)

javascript,jquery,html,css,ipad
I have recently started to learn jQuery and have been developing a responsive carousel to practice however I am encountering a strange problem where .show() doesn't seem to work correctly on Safari for the iPad. The issue I am having is that when I click the left arrow I want...

Test-Flight App beta testing time limitations

ios,iphone,ipad,ios8,testflight
I need to submit my binary files over the air without pushing app to app-store. one solution is using enterprise program, Test-Flight App Beta Testing we can send binary files to external users to limit of 1000. My Questions is : will apple take beta review (following apple guidelines) of...

Facebook 4.2 iOS 8 logon and post photo

ios,facebook,ipad,facebook-graph-api
I’ve got an iPad IOS 8 app using Facebook 4.2 SDK which simply uploads and posts an image and caption to my timeline using graph api. It used to work fine with Facebook 3.x but it’s broken when I replaced the api. under 3.x, I ask for permissions using NSArray...

Is it possible to opt your iPad app out of multitasking on iOS 9

ios,ipad,multitasking,ios9
I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app?...

UIPrintInteractionController not displaying in iPad

ios,objective-c,iphone,ipad
I'm trying to print from an app that runs on both iPhone and iPad. There's no problem with the iPhone part of the printing. However, whenever I hit the print button, I do not get the pop-up to allow me to select the printer and send the job. The view...

UIActivity activityViewController crash on iPad in Swift

ios,ipad,swift,uipopovercontroller,uiactivityviewcontroller
I have the following code below to toggle UIActivityViewController @IBAction func shareButtonClicked(sender: UIButton) { let textToShare = "Text" if let myWebsite = NSURL(string: "http://www.example.com/") { let objectsToShare = [textToShare, myWebsite] let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil) self.presentViewController(activityVC, animated: true, completion: nil) } } But it crashes on iPad. How...

make autoplay work on IPAD and IPHONE

ios,iphone,ipad,video
I have fullscreen video background, here is my code: <div id="video-container"> <video id="video" autoplay loop> <source src="ocean.mp4" type="video/mp4"> <source src="ocean.ogv" type="video/ogg"> <source src="ocean.webm" type="video/webm"> </video> </div> how you see it has autoplay attrubute, but on IPAD, IPHONE,etc.. it doesn't work untill you click on play button, but when I add...

Meta Viewport tag not scaling page

html,css,ipad,mobile-safari
I'm developing a page for iPad visitors, but the the meta viewport tag doesn't seem to be working. I'm using the following tag <meta name="viewport" content="width=device-width, initial-scale=1.0"> The page in question is here: http://www.ixl.com/files/quia/users/landing_pgs/ipad_ret/page.html. I've tried many permutations of the viewport meta tag, but none seem to do the trick....

How to control the back button navigation in ipad (UISplitViewController)ios xcode

ios,objective-c,ipad,back,uisplitview
I have used the following code for deleting my login page from the navigationcontroller(viewcontrollers) so that it will not come into the view again when going back(back button). if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { NSMutableArray *VCs = [NSMutableArray arrayWithArray:self.navigationController.viewControllers]; if([[VCs objectAtIndex:[VCs count] - 2] isKindOfClass:[loginViewController class]]&&(VCs.count>=4)) { [VCs removeObjectAtIndex:[VCs count] - 2];...

UINavigationBar appears gray in screenshot

ios,objective-c,iphone,ipad
I am taking a screenshot of my app's current view using the code below. I have a UIViewController embedded inside a UINavigationController. The method is being called in the UIViewController. In the screenshot, the navigation bar is colored gray even though the barTintColor is set to another color. Why is...

Text Field Border is not coming in only IPad2, In IPad Air or Resizable Ipad it is coming

ios,ipad,ios-simulator,ipad-2
I am running this app in simulator and in ipad2 and ipad air the style is coming different. Also tested in device same thing is happening. Any Idea how to fix this? Code Snippet: answerField.layer.borderWidth = 0.5 ...

can AVAudioPlayer trigger events on predefined intervals?

swift,ipad,avfoundation,avaudioplayer
I need to make views visible at fixed time while running a MP3 audio. I am using Swift. Any suggestions?

Saved photos don't appear on device after update

ios,iphone,ipad,filepath
On my iPhone app, I'm saving pictures associated with an event via this code: [pngData writeToFile:filePath atomically:YES]; //Write the file self.thisTransaction.picPath = filePath; Later I retrieve and display the photo with this code: UIImage * image = [UIImage imageWithContentsOfFile:thisTransaction.picPath]; Works great on my iPad (I don't have an iPhone). However,...

How to play audio on IPad using Flash CC canvas project

javascript,html5,ipad,html5-canvas,flash-cc
I'm using flash cc html5 project type. I built my project and tested on desktop and it works fine. Once test on ipad it does not play the audio. It works on android devices but not my ipad 4. I'm using Mp3 files in my flash project. I tried the...

Custom UITableViewCell is wrong width on iPad

ios,objective-c,uitableview,ipad
I've created a custom UITableViewCell, but when I run my app on iPad the cell's content is the same width as on iPhone. I want the content - the background UIView for example - to be the complete width. customCell.h #import <UIKit/UIKit.h> @interface customCell : UITableViewCell @property (nonatomic, strong) UILabel...

How to Screenshare of my iPad on Mac

iphone,ipad,airplay,screensharing
I have a big demo of my iPad application to my client,i tried AirServer, Bomgar but those are not working to share my iPad Screen on the Mac. Can any one help me which tool i should use for screenshare of my iPad to Mac. If i can share my...

iPad app — long black screen before viewDidLoad fires

ios,objective-c,ipad
we are relatively inexperienced with iOS programming, but we're getting there. We're getting to the point where we are fine tuning, and in our current ipad app under development, we notice that when we launch the app there is about a full second of black screen (ie after the icon...

Disable Hover Effect only on Touch Devices

jquery,ipad,hover,smartphone
My problem is the following: On my local website my main menu has an hover effect (border bottom). As we know it takes a double tap for visitors with touch devices to really tap the link. Is there a chance to disable the hover effect only on touch devices? I've...

iOS: Get top of keyboard point in iPad modal view?

ios,ipad,frame,modalviewcontroller,uikeyboard
I need to adjust a 'message bar' when the keyboard is shown and am having issues when using iPad modal view controller. The 'message bar' should sit right on top of the keyboard when it is shown, and then at the bottom of the modal when the keyboard is hidden...

OpenGl ES 3.0 Context not created on iPad (works in Simulator)

ios,ipad,opengl-es,opengl-es-3.0,openglcontext
I'm working on a cross platform renderer for PC (Windows, Linux, Mac) and iOS. The iOS part is currently built around OpenGL ES 2.0 and I wanted to upgrade to ES 3.0. So I replaced the following line (that works) context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; with this line: context =...

Responsive elements on Ipad

css,ipad,responsive-design
I have a problem with the responsiveness of 4 elements on a site i'm working on (www.elephantdesign.nl). The pie chart elements scales perfectly on my desktop internet browser. But for some reason the elements overlap on the IPAD 2. I have used this CSS: @media only screen and (min-device-width :...

iOS infinitely deeply nested TableView/UIGestureRecognizer view tree AND iPAD requires 2 finger scrolling on a tableview

ios,objective-c,uitableview,ipad,uigesturerecognizer
I've been trying to solve this problem for few days now and google/SO has not helped me. When viewing a tableview from an iPAD, it requires 2 finger pan gesture to scroll the tableview (only if the user interaction of the cells is enabled) A friend of mine suggested that...

Get months function is not working with iPad

javascript,ios,ipad
I need to show months and days in the iPad, but the problem is that: on showing months, it displays undefined; on showing days, it shows null or nan. Javascript code for (var x = 0; x < parsed.length; x++) { var objs = parsed[x]; var id = objs.id; var...