PIXNET Logo登入

Will的部落格

跳到主文

Will程式語言學習筆記

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 26 週日 201516:18
  • iOS - UIPageControl結合手勢換頁

UIPageControl用於提示此用者此頁面有多重顯示,
此元件的行為類似翻頁的動作,本範例為放置三張圖片,
滑動頁面與點擊UIPageControl替換圖片顯示,
並添加一個UIViewAnimationOptionTransitionFlipFromRight動畫效果。
(繼續閱讀...)
文章標籤

Will 發表在 痞客邦 留言(0) 人氣(404)

  • 個人分類:初階UI設計 - 指示型元件
▲top
  • 7月 26 週日 201515:53
  • iOS - UIPageControl

UIPageControl用於提示此用者此頁面有多重顯示,
此元件的行為類似翻頁的動作,
本範例為放置三張圖片,點擊UIPageControl替換圖片顯示
#import "ViewController.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *myImage;
- (IBAction)pageChanged:(UIPageControl*)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)pageChanged:(UIPageControl*)sender {

_myImage.image = [UIImage imageNamed:[NSString stringWithFormat:@"photo%ld.jpg",sender.currentPage+1]];

}
@end

(繼續閱讀...)
文章標籤

Will 發表在 痞客邦 留言(0) 人氣(81)

  • 個人分類:初階UI設計 - 指示型元件
▲top
  • 7月 25 週六 201522:01
  • iOS - UIAlertView警告視窗

此範例為點擊按鈕,顯示UIAlertView,
透過buttonIndex可得知點擊了哪個按鈕
viewController.m
#import "ViewController.h"

@interface ViewController ()

- (IBAction)toShow:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)toShow:(id)sender {

UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"alertView" message:@"plz choice" delegate:self cancelButtonTitle:@"cancle:" otherButtonTitles:@"save",@"load", nil];
[alertView show];
}

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

NSLog(@"%ld",(long)buttonIndex);
}

@end

(繼續閱讀...)
文章標籤

Will 發表在 痞客邦 留言(0) 人氣(644)

  • 個人分類:初階UI設計 - 指示型元件
▲top
  • 7月 25 週六 201521:20
  • iOS - 設定進度顯示UIProgressView

UIProgressView可顯示正工作正在進行的進度,
此範例為點擊按鈕,並借助NSTimer去增加progress得值,
讓UIProgressView執行結束並跳出alertView提示user工作已完成。
viewController.m
(繼續閱讀...)
文章標籤

Will 發表在 痞客邦 留言(0) 人氣(626)

  • 個人分類:初階UI設計 - 指示型元件
▲top
  • 7月 25 週六 201521:13
  • iOS - 活動指示UIActivityIndicatorView

UIActivityIndicatorView是用於當執行一個複雜作業時,
可使用IndicatorView提示使用者現在正在執行一個複雜作業,
並提示使用者等待此作業完成。
storyboard可設定indicator的樣式、顏色、初始狀態、停止時隱藏等等,
(繼續閱讀...)
文章標籤

Will 發表在 痞客邦 留言(0) 人氣(771)

  • 個人分類:初階UI設計 - 指示型元件
▲top
1

個人資訊

Will
暱稱:
Will
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (27,188)Linux - cd指令(切換工作目錄)
  • (7,431)51. 英文片語 - better safe than sorry
  • (6,170)50. 英文片語 - be that as it may
  • (4,990)9. 英文片語 - lost one's train of thought
  • (4,597)38. 英文片語 - butt head with someone
  • (4,348)41. 英文片語 - have my heart set on (something)
  • (1,242)22. 英文片語 - get off one's back
  • (666)33. 英文片語 - be packed like sardines
  • (605)55. 英文片語 - stick to
  • (590)24. 英文片語 - out of one's element

文章分類

toggle SWIFT (2)
  • 網路服務與應用 (1)
  • 多媒體應用 (2)
toggle appleWatch學習筆記 (1)
  • watchConnectivity (1)
toggle 面試考題 (4)
  • 遞迴 (4)
  • C:選擇題 (2)
  • 常見面試考題 (8)
  • C:traceCode (2)
toggle appOnSale (1)
  • iOS (8)
toggle Java (1)
  • 檔案處理 (1)
toggle 英語學習 (2)
  • English idiom - 日常英文片語, 成語 (100)
  • English idiom - 日常英文片語, 成語 2 (16)
toggle Objective-C (2)
  • 類別, 物件與方法 (2)
  • 繼承 (2)
toggle 程式設計競賽題目 (3)
  • chapter1 (5)
  • chapter3 (1)
  • chapter2 (5)
toggle Linux (4)
  • Linux基本指令 (5)
  • Linux壓縮指令 (2)
  • Linux網路指令 (3)
  • Linux檔案與目錄管理 (1)
toggle 資料結構&演算法 (1)
  • sort排序 (2)
toggle android學習筆記 (7)
  • 其他 (1)
  • 網路服務相關 (1)
  • 用Intent啟動程式中其他activity (1)
  • SQLite資料庫 (2)
  • 事件處理 (5)
  • 多媒體相關 (1)
  • 控制元件相關 (11)
toggle iOS學習筆記 (7)
  • 其他 (14)
  • 初階UI設計 - 操作型元件 (13)
  • 初階UI設計 - 顯示型元件 (5)
  • 初階手勢gesture運用 (3)
  • 初階UI設計 - 指示型元件 (5)
  • 初階iOS內建裝置-多媒體功能 (7)
  • 初階iOS網路服務應用- 資料接收與傳送 (4)
  • 未分類文章 (1)

最新文章

  • iOS - NShopper (任天堂Switch商城特價遊戲查詢)
  • iOS - Bitcoin Miner (iOS比特幣挖礦程式)
  • iOS - Electronic Music Radio (免費電子音樂, 線上廣播)
  • iOS - Music Addict Radio (免費音樂, 完整曲風, 線上廣播)
  • iOS(Swift) - 播放影片
  • iOS(Swift) - 播放音樂
  • iOS(Swift) - 下載圖片並使用非同步傳輸
  • iOS - 2016/06/01之後app必須支援IPv6之問題
  • iOS - 後搖滾廣播電App(PostRock)
  • iOS - 調音器App(ThePitchPerfect)

最新留言

  • [24/08/23] 新飛Hsinfei 於文章「14. 英文片語 - had it co...」留言:
    實用日常英文合輯,5種生活英文對話情境,教你從常用英文開始學...
  • [23/01/06] 外約外送找小姐籟34386鐘點情人外約服務不只叫小姐素質好 臉蛋更優 想要找全套外約妹的朋友務必交給我 我將達成你最終性幻想對象Telegram:nini9595 於文章「iOS - Bitcoin Miner ...」留言:
    #奶糖外送茶 #外約 #舒壓 #喝茶籟34386和TG:ni...
  • [22/06/10] wecan如是外匯 於文章「3. 英文片語 - full plate...」留言:
    邀請你加入「外匯黃金虛擬貨幣技術信號Doo~Doo~」!請點...
  • [22/05/05] Unknown 於文章「65. 英文片語 - keep one'...」留言:
    Title: Keep one's word...
  • [22/04/24] 訪客 於文章「3-1. 陣列反轉輸出...」留言:
    原本在搜尋引擎找出一堆 Blog 文章,不知哪幾篇值得花時間...
  • [21/12/30] 康藥本鋪 kmed.tw 於文章「62. 英文片語 - on the sa...」留言:
    新聞BLOG https://kmed.tw/ind...
  • [21/03/28] 訪客 於文章「iOS - 控制camera閃光燈...」留言:
    「手機」,「虛擬網路」,[最高機密]。 --- ...
  • [21/03/28] 訪客 於文章「iOS - 控制camera閃光燈...」留言:
    一個錯誤的選擇 一個錯誤的環境 造就了 一連串 ...
  • [21/03/28] 訪客 於文章「iOS - 控制camera閃光燈...」留言:
    關閉系統基哨站。 這個世界,只不過是,謊言支撐起來,當...
  • [21/03/28] 訪客 於文章「iOS - 控制camera閃光燈...」留言:
    o•o 加油,別放棄,我們的星球,是變動的,生老病死,喜怒哀...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: