Update note: This tutorial has been updated to React Native 0.50, Xcode 9, and iOS 11 by Christine Abernathy. The previous tutorial was written by iOS Team member Tom Elliot. In this React Native tutorial you’ll learn how to build native apps based on the hugely popular React JavaScript library. What makes React Native different from other frameworks such as PhoneGap (Apache Cordova) or Appcelerat
In the previous tutorial, I introduced you to NSURLSession. I talked about the advantages it has over NSURLConnection and how to use NSURLSession for simple tasks, such as fetching data from a web service and downloading an image from the web. In this tutorial, we'll take a closer look at the configuration options of NSURLSession and how to cancel and resume a download task. We've got a lot of gro
Welcome to cooking with Chef Charlie! Tonight’s menu doesn’t include smoked trout; but it does include three recipes for working with NSURLSession. In this cookbook-style tutorial, you will learn how to download data, download an Image, and post data all using the NSURLSession suite of classes. Bon Apetit! What do you need? NSURLSession Some data or images to download A web service to POST data to
Thanks for downloading our free 30 day trial! The file should begin downloading shortly. You'll soon receive an email with a trial license key. We have a community support area here to help get you started but feel free to contact us too Posted on 16 Jul 2014 Written by Sam Davies Regular visitors to the ShinobiControls blog may well remember a flurry of activity in September of last year, coincid
iOS8からHealth.appとHealthKitというフレームワークが追加されました。 HealthKitはCoreDataのようなアプリ間で共有できる健康データの読み書きや健康情報に関する単位やformatter、統計計算が行えるフレームワークです。 HealthKit – Apple Developer HealthKitが扱う範囲は幅広いため、この記事ではデータの書き込みと読み込みを例にHealthKitの基本的な使い方について学んで行きたいと思います。 2014年7月25日(金)に第1回 Tech-Gym byプラスアール @SMS 【iOS勉強会、開発者向け】 : ATNDというイベントで、Healthkitについて喋ります。 詳細はTech-GymというiOS勉強会を開催しますの方を見て下さい。 基本的なクラス HealthKitではかなりの数のクラスや単位の定義等が用意さ
im-sei: HealthKit.framework に登場する主なクラスを簡単にまとめていきます。 そして HealthKit についてなんとなくわかった気になります。 HKUnit体重をあらわす単位はアメリカではポンド (lb) が広く使われているようですが、日本ではキログラム (kg) が広く使われています。 体温をあらわす単位は日本では摂氏が広く使われていますが、華氏が使われているところもあったりします。 HealthKit では HKUnit クラスを使って様々な単位をあらわすことができます。 キログラムとポンドをあらわすオブジェクトをそれぞれ作ってみます。 let kgUnit: HKUnit = HKUnit(fromString: "kg") let lbUnit: HKUnit = HKUnit(fromString: "lb")もうすこし複雑な単位をつくることもできま
けっこう簡単にできたのでメモ。 「(同じプロビジョニングを使用した)異なるアプリ間でデータ共有する方法」です。 KeychainSharingを利用するので、アプリを削除してもデータは消えません。 この領域に保存されたものは暗号化される?のでパスワードなどの保存領域として利用するものらしい。 データを保存する側のプロジェクト作成 まずはデータを保存する側のプロジェクトを適当に名前をつけて作成。 KeyChainGroupのIDをつける 次にKeychain のグループIDを付けます。任意でOKです。 ※ここでは「jp.itoz.sample.TestKeyChainSharing」としました。 他のアプリでも同じものを使います。 上記グループIDが設定されると、「.entitlements」ファイルが出来ています。 中を覗いてみると、先ほどのIDの前に、$(AppIdentifierPre
In case you missed it, our own Britt Ballard (a fellow native Texan) published a fantastic post in our Back to Basics series on test-first methodology. My only issue with it is that the entire post is written in this super obscure language called Ruby! So I wanted to take a look at the same methodology from the point of view of an iOS developer, in tried and true Objective-C. Our desired code We w
Kiwi+CocoaPodsで始めるiOSアプリの振る舞いテスト入門:iOSアプリ開発でもCI/継続的デリバリしようぜ(2)(1/4 ページ) 現代の開発現場において欠かせないCI/継続的デリバリを、iOSアプリ開発に適用するためのツールやノウハウを解説する連載。今回は、iOSアプリの機能の振る舞いをテストするテスティングフレームワークの特長とインストールの仕方、主な使い方を解説します。 前回の「iOSアプリ開発でCI/継続的デリバリ環境を始めるための4種の神器」では、CI/継続的デリバリ環境を構築するために必要なツール・サービスを紹介しました。 今回はiOSアプリのためのテスティングフレームワークの1つである「Kiwi(キウィ)」を使った振る舞いテストの書き方について解説します。 振る舞いをテストするテスティングフレームワーク「Kiwi」とは KiwiはiOSアプリケーションの機能の振る
Update: This tutorial has been updated for iOS 8 and Swift here. This Objective-C version is no longer supported but is here for reference. For many years, Core Data has been an integral part of many OS X and iOS apps, supporting the persistence and querying of user data. Apple constantly tinkers with Core Data API, in an effort to make it easier for developers to use and integrate into apps. That
RubyMotion TutorialRuby で iOS アプリを作ろう by Clay Allsopp Follow @clayallsopp 日本語訳: RubyMotion JP RubyMotion を使うと Ruby で iOS のアプリを開発することができます。これまで Apple のプラットフォームにおけるソフトウェアは Objective-C という、素晴らしいがその一方でニッチな言語しか使用できないよう制限されてきました。RubyMotion は完全にネイティブで、効率の良い他の言語による開発を可能にします。その言語とは Ruby です。 RubyMotion Tutorial では iOS SDK をできる限り Ruby らしく使うために必要不可欠なトピックを学ぶことができます。すべてを網羅はしていませんが、洗練されたアプリケーションを最大限素早く開発するための道しる
保存場所を選択し、Createをクリックします。 テンプレートからプロジェクトが作成されました。 Master-Detail Applicationについて 今回はMaster-Detail Applicationテンプレートからプロジェクトを作成しましたが、まずはMaster-Detail Applicationがどのようなアプリなのかを見てみます。 画面左上のRunボタンを押してアプリを実行します。 各部の名称 実行すると以下の画面が出ると思いますが、この画面をMaster画面と呼ぶことにします。 Master画面は大きくわけて3つの部分から成り立っています。 上から順にStatusBarNavigationBarTableViewと呼びます。 StatusBarは時刻や電池残量、電波状況等を表示する部分で、非表示にすることもできます。 NavigationBarの管理は本連載第一回目
アップデート4/15/2013 Xcode4.6、及びARCに対応しました。(オリジナル投稿者:Ray Wenderlichアップデート投稿者:Brian Moakley)。 “Core Graphics”はiOSに於いて非常に優れたAPIなんです。これを使う事によってもの凄くカッコ良くUIをカスタマイズする事が出来るんです。これが使える様になれば、グラフィック担当のアーティストなんか必要なくなります。 でも、多くのiOS開発者が、何故か”Core Graphics”に対して最初は威圧感を感じます。それは、あまりに広大なAPIであるという事と、開発途中に思わぬ障害に巻き込まれる事があるからです。 これは、チュートリアルですから、”Core Graphics”に対して多くの開発者が感じるちょっとだけ取っ付きにくい感を、これから一緒に作成するプロジェクトを通して払拭して行きたいと思います。まず
When I joined the team I have been working with recently, they were trying to create a graph using Core Plot, a popular third party library. It didn’t go well though, there were two big problems. First, they couldn’t use a custom image for the graph’s background, as was required by the designer. Second, the quality of scrolling was unacceptable. By that time, I already had a couple of graphs under
Users expect a high level of polish from iOS apps, so it’s up to you to design, develop and test your apps to meet ever-rising expectations. Think about it for just a moment: How much time have you poured into conducting basic manual user interface testing? You know the drill…launching your app from Xcode, and incessantly tapping the same series of buttons to make sure no regressions slipped into
今回はBDD系のフレームワークであるKiwiの導入と簡単なコードの説明をしていこうと思います。 https://github.com/akuraru/iOSxTDD/compare/0.2.1...1.0 Kiwiの概要 BDD(振る舞い駆動開発)を支援するためのフレームワークです。要求仕様に近い形でテストコードを記述することが出来ます。Kiwiはモックやスタブ、非同期テスト用の機能が実装されています。 https://github.com/allending/Kiwi 要するにXCTestでは書きづらいテストが多くあるので、書きやすくするフレームワークを使いましょうということです。 他にもテストを支援するフレームワークは多く存在するので調べてみてください。 Kiwiをターゲットに追加 Kiwi追加する方法はCocoaPodsを使うのが一般的でしょう。下記のようにPodfileにtarge
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く