potatotips #48 (iOS/Android開発Tips共有会) にて発表したスライドです
potatotips #48 (iOS/Android開発Tips共有会) にて発表したスライドです
こんにちは。検索・編成部の中村です。いよいよ来月は WWDC 2016 が開催されますね。どんな発表があるか今から楽しみです。本エントリでは、Core Spotlight APIs を使用してアプリ内のコンテンツを Spotlight 検索に表示させる方法について解説していきます。 Spotlight 検索 Spotlight 検索はホーム画面を右や下にスワイプして表示します。画面上部の検索窓からアプリ内のコンテンツを検索でき、ヒットした項目をタップするとアプリが起動して目的のコンテンツが表示されます。この仕組を利用してユーザーは素早く目的を達成できます。数多くアプリをインストールしているユーザーは、アプリの検索に利用しているのではないでしょうか。 iOS クックパッドアプリ(v16.3.0.0 以降)では、特売情報を掲載している店舗が Spotlight 検索にヒットします。店舗をタップ
If you’ve ever tried to create your own iOS framework, you know that it’s not for the faint of heart – managing dependencies and writing tests doesn’t make it any easier. This tutorial will walk you through creating your first iOS framework from start to finish so that you can go out and create your own. We’re going to build a framework that exposes a function called RGBUIColor(red:green:blue) tha
Xcodeで開発を行っていると必ず使う「****.framework」。 今回はこれの作成手順をまとめます。 ちなみにframeworkについてはドキュメントもあります。 Framework Programming Guide: Introduction to Framework Programming Guide 実態はただのディレクトリ 実はframework自体はただのディレクトリです。 その中身の構造にフォーマットがあり、適切にファイルやディレクトリを配置することでXcodeがframeworkとして認識し、利用できるようになる、というわけです。 ディレクトリ構造 ドキュメントによると一番シンプルな状態は以下のようになります。 A simple framework bundle MyFramework.framework/ MyFramework -> Versions/Curre
はじめに 本シリーズ「iOS Core Audio」ですが、 前回の第1回目の記事執筆からかなりの時間が経ってしまっています。 この間にiOS 8が発表され、オーディオ関連フレームワークに新しいクラスが追加されたり、 機能が強化されたりしました。 本記事では、iOS 8でのオーディオ関連フレームワークの変更点について見ていきます。 目次 iOS 8でのオーディオ関連フレームワークの主な変更点は以下の通りです。 「MIDI over Bluetooth」対応 新しいフレームワーク「CoreAudioKit Framework」の追加 AV Foundation Framework に新クラス追加 AV Audio Utility classes AVAudioEngine 「MIDI over Bluetooth」対応 MIDI over Bluetoothとは? Bluetooth Low
Nov 20, 2014 iOS, OSXで利用できるライブラリ管理ツールといえばCocoaPodsが有名ですが、 それとはまた違った方針のCarthageというライブラリ管理ツールがリリースされました。 GitHubのデベロッパーを中心としたチームで開発が進められているようです。 https://github.com/Carthage/Carthage インストール方法 Releasesからpkgをダウンロードして、インストーラーを実行します。 使い方 Cartfileを書く carthage updateを実行する Carthage.buildに作成された.frameworkをXcodeに追加する Cartfileではgithub, gitの2種類のキーワードが利用でき、以下のように書きます。 サポート対象 Carthageはdynamic frameworkのみをサポートするため、C
Yesterday’s article described various techniques for resizing images using APIs from the UIKit, Core Graphics, Core Image, and Image I/O frameworks. However, that article failed to mention some rather extraordinary functionality baked into the new Photos framework which takes care of all of this for you. For anyone developing apps that manage photos or videos, meet your new best friend: PHImageMan
-(void)viewDidAppear:(BOOL)animated { // エミュレータでも問題なく動く // postのクライアント表示はiOSになる。 SLComposeViewController *twitterPostVC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [twitterPostVC setInitialText:@"iOSのSocialFrameworkから投稿テスト。\nSLComposeViewController簡単。"]; [self presentViewController:twitterPostVC animated:YES completion:nil]; } Timelineの取得 OAuthのややこしいところをSL
11. ①AVCaptureSesison の準備 // セッションの作成 self.session = [[AVCaptureSession alloc] init]; _session.sessionPreset = AVCaptureSessionPresetHigh; @property (nonatomic) AVCaptureSession *session; 12. ②入力デバイス(カメラ)の準備 // 入力デバイスの設定 AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; ! AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice:device error:n
はじめに 本シリーズ「iOS Core Audio」ではiOS 2.0からiOSに標準搭載されている「CoreAudio」と呼ばれるオーディオ処理用のソフトウェアインターフェイスを扱っていきます。 今回はCore Audioのフレームワーク群の概要を見ていきます。 目次 Core Audio ? Core Audioを構成するフレームワーク/サービス Inter-App Audio 実機とシミュレータ 外部ハードウェアとの連携 iOSのバージョンとCore Audio まとめ Core Audio ? 「Core Audio」はオーディオ処理用のフレームワークの総称であり、アプリ内でオーディオを再生、録音、ミックス、生成することをサポートします。MIDIコンテンツを扱ったり、他のアプリにオーディオやMIDIをストリーミングしたりすることも可能です。 多数のフレームワークが用意されており、簡
iOSの設定で認証済みのTwitterアカウントを用いて、Twitter APIからタイムラインを取得したり、ツイートの投稿をしたい場合があります。今回はその方法を説明します。 ※ iOS 6で仕様が変わったので、それに準じて、SLRequest / SLComposeViewControllerを使う方法を説明します。 準備 以下のフレームワークをプロジェクトへ追加してください。 Accounts.framework Social.framework ※ Twitter Developersで得られるConsumerKeyやConsumerSecretは必要ありません。 iOSで認証済みのTwitterアカウントの取得 まずはACAccountStoreオブジェクトを生成し、ViewControllerのメンバ変数などで保持するようにしてください。 _accountStore = [[A
iOSのアプリケーションではモデル周りのテストと同じぐらいUI周りのテストが重要な気がするのですが、画面のテストってちょっと面倒ですよね。その上Xcode標準のテストフレームワークでは画面遷移などのテストができません。そこで、統合テスト用のテストフレームワークを使う必要がでてきます。 選択肢はいくつかありますが、使い方がシンプルで導入も容易なKIF Frameworkを紹介します。 KIF Framework GitHub - kif-framework/KIF: Keep It Functional - An iOS Functional Testing Framework KIFは決済サービスSquareが自社アプリケーションの統合テストのために開発したフレームワークだそうです。KIFを使ったテストではボタンをタップして画面遷移したり、画面遷移した先のUIの存在を確認したりといったこと
最近気になっているiOS向けのframeworkについて手を出しついでに簡単にまとめてみます。 公式ページはこちらC4:http://www.c4ios.com/ あんまり日本語の記事を見ないので手探りではありますが、今回は概要の拙訳とHello Worldから。 なんて読むの? おそらく"CocoaFor"と読むのではないでしょうか。 C4とは Code, Creatively. C4 is a brand new creative-coding framework lets you build expressive user experiences and create works of art. C4 gives you the power of the native iOS programming environment with a simplified API that let
C4 is an open-source creative coding framework that harnesses the power of native iOS programming with a simplified API that gets you working with media right away. Build artworks, design interfaces and explore new possibilities working with media and interaction. Install C4 Download the installer to get up and running with C4 right away!
SDWebImageを使うと、簡単に画像を非同期でダウンロードできて、かつUIImageViewに設定することができます。 SDWebImage 参考 SDWebImageを初めて使う際の注意点 【iOS】SDWebImageでアプリ容量がどんどん増えていく件 ImageIO.frameworkとMapKit.frameworkの追加が必要です #import "UIImageView+WebCache.h" - (void)viewDidLoad { NSURL url = [NSURL URLWithString:@"http://hogehoge.com/hoge.png"]; [imageView setImageWithURL:url placeholderImage:nil options:SDWebImageCacheMemoryOnly]; } placeholderIma
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く