PenSizeViewですが、筆先のような感じで、尖った方を選ぶと細い線、丸まった方を選ぶと太い線が描けるようにします。 用意するdelegateプロトコルはこんな感じ。delegateプロトコル?な人はモーダルビューを表示する(2)を読みましょう。 @protocol PenSizeViewDelegate -(void)penSizeView:(PenSizeView*)view size:(double)inSize; @end inSizeが0.0~1.0の範囲で値を指定してくるので、これを元にdelegate継承側は描く線の幅を1ピクセルから30ピクセルといった好きな範囲で変化させればいいわけですわ。 あと、PenColorViewで選択された色に変化するようにしたいっすね。 こんなふうに、赤だったのが指の移動に合わせて色が変わっていくようにしたいわけっす。 そのためにPenSi
macOS SwiftUI Programming コーディングだけで macOS アプリが作れたらな、とずっと思っていましたが、3年前から SwiftUI を使って、コーディングだけで macOS アプリが書けるようになっていると知り、さっそく始めてみることにしました。 はじめの一歩 <コード説明を追加しました> Jul. 12, 2022 Xcode で作業する場合 Jul. 06, 2022 アプリケーションの終了 <コード説明をつけました> Jul. 12, 2022 アイコン Jul. 06, 2022 ボタン <コード説明をつけました> Jul. 11, 2022 トグル <コード説明をつけました> Jul. 11, 2022 スライダー <コード説明をつけました> Jul. 11, 2022 ピッカー Jun. 28, 2022 フォーム Jun. 29, 2022 テーブル
RegexKit is an Objective-C framework for regular expressions: Support for Mac OS X Cocoa and GNUstep. Mac OS X 10.4 or later required. Mac OS X Universal Binary, including 64-bit support on Mac OS X 10.5. No sub-classing required. Seamlessly adds regular expression support to all NSArray, NSData, NSDictionary, NSSet, and NSString Foundation objects with a rich set of Objective-C category additions
String™ is the fastest, easiest to use augmented reality SDK for iOS String™ recognises framed images and understands where they are in 3D space. It's a piece of software you can plug in into any iOS project, that lets you display rich 3D graphics on top of the camera view as if they existed in the real world. At String™, we know app development. That's because we're in the business ourselves. Thr
Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. HTTP is one of the simpler protocols to implement for communication between computers. On the iPhone, since there are no APIs for data synchronization or file
「 ip7.biz 」のページは、ドメインが無効な状態です。 ウェブサイト管理者の方はこちらから変更・更新を行ってください。 「 ip7.biz 」is Expired or Suspended. The WHOIS is here.
iPhone Bluetooth Programming Learn how to communicate with a server using TCP/IP and also how to build a simple chat application. ne of the neat features available in iPhone OS 3.0 is the GameKit framework. The GameKit framework contains APIs to allow communications over a Bluetooth network. Using these APIs, you can create peer-to-peer games and applications with ease. Unlike other mobile platfor
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
TempDataというクラスを持つNSArrayまたはNSMutableArrayクラスがあるとします。 TempDataクラスはNSDateクラスのeventDateをメンバとして持っているとします。 TempDataクラスにNSComparisonResultを返すメソッドを実装します。 ここではcompareDateという名前にしています。 - (NSComparisonResult)compareDate:(TempData *)data { return [data.eventDate compare:self.eventDate]; // return [self.eventDate compare:date.eventDate]; どちらにするかは昇順または降順にしたいかによって変わります }そして今まで通りNSArray(NSMutableArray)に追加していきます。
標準のCocoaフレームワークでは、UIProgressViewの色を変更することができません。そこで、iPhoneアプリを開発に役に立つ色を変えれるUIProgressViewのサブクラスをご紹介します。ライセンスはMITで、個人や商用目的でも利用できます。 また、ソースコードはこちらで手に入ります。 greenisus’s PDColoredProgressview at master – GitHub Downloadボタンを押すことで、ソースコードを含んだZIPファイルをダウンロードできます。使い方は簡単で、Xcodeにファイルを追加して、通常のUIProgressViewと同じように使用します。色を変えたいときは、tintColor を変える setTintColorメソッドがあるので、それに色を指定するだけです。 実際にコードを書いてみました。 UIColorで指定できる色であ
☆Cocoa Touch UIKit勉強(3) 画像取得・選択;UIImagePickerController UIImagePickerControllerは、カメラでの撮影、および撮影後画像の選択(取得)を制御するためのビューである。 iPod touch(iPhone)のカメラアプリケーションとiPadを含む写真アプリケーションは主にこれから出来ている。 静止画(still image)及び動画(movie)が対象になる。 なぜかUINavigationControllerの子クラスになっている(デリゲートの関係か)。 カメラまわりはiOS4.0、というか第4世代iPhone/iPod touchで大幅に機能アップされたので、 それ以降しか対応していない項目も多い。 当然のことながら、カメラを持っていないiPad1では無効な部分も多い。 iPadではUIPopoverControll
NSStringを指定した文字コードでURLエンコードします。 一瞬 stringByAddingPercentEscapesUsingEncoding: のみで事足りそうに思うのですが、それだけだと下記コード中の escapeChars にある文字達が残ってしまいます。 @implementation NSString (URLEncoding) -(NSString *)stringByURLEncoding:(NSStringEncoding)encoding { NSArray *escapeChars = [NSArray arrayWithObjects: @";" ,@"/" ,@"?" ,@":" ,@"@" ,@"&" ,@"=" ,@"+" ,@"$" ,@"," ,@"[" ,@"]" ,@"#" ,@"!" ,@"'" ,@"(" ,@")" ,@"*" ,nil]
Widgets and Live Activities Widgets are becoming even more powerful in even more places. Now you can use WidgetKit to build support for interactivity and animated transitions, so people can take action right in your widget. Once you rebuild for iOS 17, with just a few simple changes your existing widgets will look great in StandBy on iPhone, on the Lock Screen on iPad, and on the desktop on Mac. W
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く