I have to implement print functionality in my iPad app. I and my client have ios 5 device. I have heard that print functionality is no longer available in ios 5 devices. Is it really true? I wrote the code for print functionality, when I tested this on ios 4.3 it was working fine but when I upgraded my device to ios 5, the print controller never appears. Also when I open photos app, the print option is there. They say that now only photos can be printed from ios 5. Is there any way by which I can implement print functionality in my app. I have to implement this functionality to print PDFs and PPTs which user can read in this app and they are stored in resources folder. Please guide..
Regards
PC
Related
Can we close forcefully iOS gallery if its open using titanium ?
I need close the iOS gallery if the application goes to background to foreground.In the documentation i don't any such method or event.So making sure here by asking.
This question was asked recently (by you?) on the Appcelerator JIRA. https://jira.appcelerator.org/browse/AC-5647
It is possible on iOS to do this using Hyperloop. If something similar exists natively on Android too then that can also be implemented through hyperloop
Code as proposed in that ticket.
var TiApp = require('Titanium/TiApp');
TiApp.app().hideModalControllerAnimated(TiApp.getController().topPresentedController, true);
I am writing an App for a restaurant that needs to print receipts.
How to print to a bluetooth receipt thermal printer from an iOS App?
Just need to print simple text and maybe a logo.
I cannot find any current SDK. Just need support for iOS 8+
OK the solution is to use epson sample code which was just released about a month ago.
// ePOS SDK Ver.2.4.0
It includes a library called libpos2.a
which you initialise with as Epos2Printer
Example: Epos2Printer *printer_; in objective-c
The source file is called "ePOS_SDK_Sample_iOS.zip"
Google it and you should fine it, make sure it is version 2 "ePOS2" is was released November 2016.
The discovery view controller allows to to select the printer and main view controller has the sample code you need to print to it.
Hope this helps!
I am getting this error "The operation couldn’t be completed. (CSIndexErrorDomain error -1005.)" while running code for spotlight search on ipad.Does anyone know how to solve this error?
The CoreSpotlight is available on iOS 9 onwards.
Though your device maybe at iOS 9.x, it still may not work if it is a older device version.
From Apple docs.
Although app search is available for iOS 9 users, the search functionality of NSUserActivity and Core Spotlight is not supported on iPhone 4s, iPad 2, iPad (3rd generation), iPad mini, and iPod touch (5th generation)."
So if you are testing on any of the above devices or simulators for the same you will get the CSIndexErrorDomain error -1005.
From Corespotlight API documentation
CSIndexErrorCodeIndexingUnsupported = -1005, //Indexing isn't
supported on this device
Since the Search feature is not available on all the devices supporting iOS9 so check the following condition to know whether the device supports search
if ([CSSearchableIndex isIndexingAvailable])
and keep the methods of search under this condition.
I'm using UIDocument method to store data in iCloud.
So I have 2 devices to test, when I first launch the app on iPhone, then I do some changes then call saveToURL:completionHandler, after that I launch the app on iPad, it's working good, at least it does retrieve the data from Cloud server.
My problem arise after both have their local Cloud storage. Now I made some changes on iPad, then I switch back to iPhone, I noticed the iPhone still having its old data, not the changes that iPad did earlier.
Does anyone know what's the problems? I even try to turn on/off Document & Data in iCloud setting then re-run the app but no luck, it's still doesn't working.
i am developing a POS(point of sale)application.i am able to print successfully with the UIPrintInteractionController popover. however , when a printticket button is pressed on the screen it should directly print without having the print interaction popover. i am not sure if this can be possible.
can anyone suggest an alternative?
Thank You.
Good news, with iOS8 it is now possible to print without UIPrintInteractionController. See the WWDC 2014 video Adopting AirPrint. They specifically mention how useful this is for POS applications.
I've interacted with the iOS Printing API a bit, and I've never come across a way to print without using the UIPrintInteractionController. As an iOS device user, I'm not sure I'd want a way to print without my say-so, because then any old app could just start spamming my printer.