TTOpenInAppActivity
UIActivity to display "Open In ..." and open UIDocumentInteractionController
Install / Use
/learn @honkmaster/TTOpenInAppActivityREADME
TTOpenInAppActivity
TTOpenInAppActivity is a UIActivity subclass that provides an "Open In ..." action to a UIActivityViewController. TTOpenInAppActivity uses an UIDocumentInteractionController to present all Apps that can handle the document specified with by the activity items.
<img src=https://github.com/honkmaster/TTOpenInAppActivity/blob/master/Screenshot.png width="414px" />
Used In
- Stud.IP Mobile by Tobias Tiemerding
- PenUltimate by Evernote
- Pinpoint by Lickability (previously Bugshot by Marco Arment)
- WriteDown - a Markdown text editor with syncing support by Nguyen Vinh
- Trail Maker
- Syncspace by The Infinite Kind
- SketchTo by The Infinite Kind
- Calex by Martin Stemmle
- deGeo by MobileInfoCenter
- Lyynifier by Lyyn
- KyBook by Kolyvan
- Photo OCR
- My Wonderful Days
- Name2Brain
- Please tell me if you use TTOpenInAppActivity in your App (just submit it as an issue)!
Requirements
- As
UIActivityis iOS 6 only, so is the subclass. - This project uses ARC. If you want to use it in a non ARC project, you must add the
-fobjc-arccompiler flag to TTOpenInAppActivity.m in Target Settings > Build Phases > Compile Sources.
Installation
From CocoaPods
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like TTOpenInAppActivity in your projects. First, add the following line to your Podfile:
pod 'TTOpenInAppActivity'
If you want to use the latest features of TTOpenInAppActivity use normal external source dependencies.
pod 'TTOpenInAppActivity', :git => 'https://github.com/honkmaster/TTOpenInAppActivity.git'
Manually
- Add the
TTOpenInAppActivitysubfolder to your project. - Add the required frameworks
UIKit,ImageIOandMobileCoreServicesto your project.
Usage.
NSURL *URL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"empty" ofType:@"pdf"]];
TTOpenInAppActivity *openInAppActivity = [[TTOpenInAppActivity alloc] initWithView:self.view andRect:((UIButton *)sender).frame];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:@[openInAppActivity]];
activityViewController.popoverPresentationController.sourceView = self.view;
activityViewController.popoverPresentationController.sourceRect = ((UIButton *)sender).frame;
[self presentViewController:activityViewController animated:YES completion:NULL];
Contributers (Thank You!)
License
TTOpenInAppActivity is distributed under the terms and conditions of the MIT license.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
