Disable/hide magnifier loupe - ios

I am using an older version of PSPDFKit, 3.7.0, and I need to disable the loupe that shows up at long tap on a document but keep the other menu items. Is this possible?

Charlie,
PSPDFKit Founder here. You really should update our PDF SDK - we've improved A LOT since 3.7, it's also quite dangerous to modify the framework without having any tests.
So we usually only support people with ongoing subscriptions, but this one here is a freebie, though no guarantees that things work similar in 3.7, I'm looking at the codebase for 6.6pre here.
Look for PSPDFLoupeView, that's the class that is the loupe. PSPDFTextSelectionView (might just be called a bit different in v3) controls the logic to present the loupe. Check if there's something like - (void)showLoupe:(PSPDFLoupeView *)loupe animated:(BOOL)animated there and override it.
This definitely works in v6, can't say if this works in v3 but maybe it helps. And if you're interested in getting a new license, ping us at https://pspdfkit.com/sales/.

Related

Objective-C, nice to meet you and your UIImagePickerController

Bottom line: read the two questions at the bottom.
I am in the progress of transitioning languages, so forgive me for the newb question. I am building an app that has, surprise, an audio/video capture requirement.
Using the development sample code for UIImagePickerController as a reference I was able to build out a working prototype. However, I quickly realized that UIImagePickerController is too simple. You don't get landscape mode and some of the options seems pretty basic.
I see that Apple recommends using AV Foundation. In addition, I read, on stack overflow, that there are a number of projects on github that extend or replace UIImagePickerController.
This brings me with two questions:
1) Is it a common scenario that Foundation/UIKit provide some very basic functionality, but if you really want a fully featured implementation, you need to go full tilt into one of the more complex frameworks? Personally, starting out, AV Foundation is pretty intimidating. The giant leap between UIImagePickerController and AV Foundation capture seems quite large. The fact that UIImagePickerController kind of "stops dead" so early in the feature set surprises me due to AV capture being so common. Perhaps I'm missing something.
2) Is it common for people to use a lot of 3rd party dependencies with objective-C development? In this case, getting an alternative open source image picker? I guess what I'm asking here, is Objective-C development as prone to dependency hell as other ecosystems?
I know it's possible to use overlays to customize the appearance, but I still think this would leave you with some of the same problems. You can't write a custom camera without AVFoundation, but I think it's worth it to get a few features that you really want.
Yes, third party dependencies are quite common. But, there are often at least a couple options when looking for something.
You can check out my newly open sourced version of a camera here: https://github.com/LoganWright/SimpleCam

Is it important make use of standard iOS components?

We are creating an iOS app that does not look like any other app you would find in the app store.
My question is, am I allowed to create custom components such as header bars, tab bars, tables etc. for my app and not get rejected by Apple when publishing the app to the app store?
Months of thought and planning has gone into the UI and flow of the app, so the user experience would be superb, we're just concerned about how apple feels about custom apps/components like these?
Regards
There's nothing inherently wrong with creating an app that's got a completely different look and feel to everything else.
But what I would advise is that you try to use the built-in components as much as possible. In recent versions of iOS Apple have introduced a number of APIs to let you customise their look and feel significantly, and some of the most innovative UIs out there are simple table and collection views that have been hacked to pieces.
This is because Apple's built in components have logged many hundreds of thousands (if not millions) of hours of real-world testing and use, and are thus vastly more stable and field-tested than a totally custom component. Plus, they often have various built in features (such as a scroll view's bounce) that are hard to replicate on your own.
So definitely customise your interface as much as you like, but while you're doing it think about whether you can harness the built-in UIKit classes rather than totally re-inventing the wheel.
More and more custom controls appear for iOS every day. If it is so good as you say, Apple will be happy to accept it. Don't worry.
Also take a look at these cocoacontrols
As said before, Apple will not have a problem with that .. as long as you don't use any private APIs. If you are developing these components on your own, you will have to make sure that these will work in future releases (which is not necessarily a bad point) . This may be a problem with third party components, as they may not be continued (or supported in future releases).

iOS User Interface Customization Kits?

I know that recent versions of iOS have added support for easy customization of the look and feel of its components through its "appearance" functionality. However, I'm not exactly artistically inclined.
Does anyone know of a resource that provides pre-packaged user interface customization kits that are easy to plugin using the iOS appearance APIs? I'm looking for high-quality look & feel, but also would like to see sample code showing how to integrate it into an application. I don't really care if its for purchase or free. I just would like something that looks really slick and high quality. Thoughts?
UPDATE: Okay, I found a site that does offer what I was looking for. AppDesignVault.com has pre-packaged app templates (graphics, code, etc.) for iOS applications. However, I find it hard to believe they're the only ones that offer this. Has anyone come across similar resources or packages?
Not exactly a drop-in replacement, but you might want to take a look at NUI which is an open-source UI styling library with theme support (themes are written in a CSS styled markup language). Another great resource to look for ready UI components is cocoa controls, again, not exactly drop-in and forgot, but still better than implementing it yourself (although the quality of the stuff there varies a lot).
I'm not aware of any drop-in replacement which offers ready made styles, but I hope these two get you somehow started.
There are so many more, right here.
Once you have those designs, here's a tutorial to actually implement them in iOS 6.
This is objc custom libs I like and use: http://www.objclibs.com/# . Maybe one of those will strike your fancy?

Existing iOS form framework

Hello I am building forms over and over in iPhone and iPad apps:
Custom UITableViewCells for labels with input
Localization for labels, placeholder text and section headers
Validation that marks the cells red or something and does not allow "Submit" if form is incomplete
Clicking in the cell activates the editable text box
Next / previous buttons
Reliable across devices, orientations, iOS versions
I can't imagine I'm the only one doing this. Is there a mature framework or something that can drop in and use? Could you please comment on how you use this library with designs other than vanilla UITableViews with your own colors etc.?
Take a look at IBAForms - an open source project from from Itty Bitty Apps. I haven't used it yet myself, however I believe it does most of what you want, except for validation. Here is the github page: IBA Forms
It hasn't been maintained in a while, but if you're looking for a forms library - it's mature and works. At the very least, it could be the starting point for something you take further.
Update: There is also Chris Miles' EZForm library, which is very nice.
Update #2: Have also started checking out QuickDialog, which seems to be very popular.
Update #3: Nick Lockwood has created one called FXForms
Update #4: Martin Barreto has created one called XLForm
I don't know if this counts as an answer, but i use Sensible Cocoa - Sensible TableView (STV) for this purpose a lot. It's not a "forms" framework (on top of UITableView) as such, but it can be used for this purpose in a very flexible way. It still requires some coding to build a full-fledged form but the UITableView/UITableViewController boilerplate code is reduced to a minimum. Unfortunately the developers bumped the price tag quite high with version 3.0, so i'm actually looking for a STV replacement right now. (I'd stick with STV if it wasn't for the price!)
I don't know of anything that combines all those features, but I recently open-sourced my validation library PMValidation on github, which I used developing the iPhone app Imprints. PMValidation comes with many basic types suitable for validating forms, and in fact that's what I originally built it for.
Using the PMValidationManager class you can easily listen to UITextViews or UITextFields, and update whatever graphical widgets you want via notifications. It's very modular and easily extendable, should you have more unique needs. It's under the MIT license.

Phonegap iOS app: change keyboard appearance to UIKeyboardAppearanceAlert (again)

A couple of months ago, I posted a question asking if and how phonegap users can alter the keyboard appearance to the dark alert ui keyboard (UIKeyboardAppearanceAlert) without targeting individual textfields. I did some extnsive reaearch myself and offered a bounty but yet the question remained unsolved.
Alter keyboard appearance in native, phonegap/Cordova built iOS App
As of today, I'm still struggling to get this resolved and simply over with. I do realize much probably hasen't happened since last time I bothered you with this question, however, two things have in fact changed which somewhat justifies this seemingly double post:
Phonegap has released version 2.1 which does some new stuff, perhaps this is possible now?
As my client expects me to solve this in any way possible, this time I would also like to ask you for an alternative approach. If it still can't be done, would it be possible to custom make a "keyboard" of my own? I know this of course is technically doable, but is it in any way a recommended approach that would be considered in at least some way smart and justified? As I said, my client pushes hard for this and is not in favor of rebuilding the app completely natively.
Conclusively, as of today is there any way to do this with phonegap / Cordova? If not, would you recommend me to custom make a keyboard using HTML CSS and JavaScript, bearing in mind this is a major comsern for my client? If so, are there any good plugins that I can use as a start? Please check out my old post (linked above) to see what has already been tested.
Thanks in advance,
Jonathan
I know this is quite old but I came accross it looking for the same thing. Anyway, I have found a possible solution which would be to create a plugin for Cordova http://cordova.apache.org/docs/en/2.6.0/guide_plugin-development_index.md.html#Plugin%20Development%20Guide
It does require some native coding but would atleast avoid starting an app from scratch which has already been built in Cordova.

Resources