Just My Life & My Work

Posts tagged ‘ios’

用筆電接聽電話

自從我的MacBook Air升級到Yosemite Mac OS後,就開始會用筆電接聽電話,因為配合iPhone 6iOS 8,由於兩個作業系統都有做到Handoff技術,所以可以在不同裝置中無縫做同樣的事情!

用筆電聽電話

每次媽媽打電話給我,我就在等平板電腦和筆記電腦同時響起:)~

此外,去年12月底買的小米智慧手環,可以設定幾秒後來電震動提醒,上週去看十分瀑布,跟教會朋友分散差點漏接電話,好在小米手環透過藍芽接收到手機有來電,我發覺後才接聽起來呢~

Apple是透過iCloud帳號做到「無縫接軌」,所以我用同一個帳號登入我所有Apple設備,並且在同一個WiFi訊號底下,就能輕鬆自在地工作囉~

Handoff

開始可以想像,未來的許多穿戴裝置都能夠互相「掩護」了!

引文

要學Objective-C還是Swift?

Apple發表Swift已超過半年,學習新程式語言已勢在必行,使用熟悉的Objetive-C來開發當然速度很快,不過未來肯定會往Swift發展,從現在開始來備戰吧!就我目前的狀況,會以Objetive-C為主而Swift為副,直到死亡交叉那一天到來~

Objective-C vs Swift

(繼續閱讀…)

[Xamarin][iOS] 多螢幕:電話字 (Sample Project: Phoneword)

承接深度了解專案:電話字 (Sample Project: Phoneword),再來學習多螢幕架構,同樣也是跟Xcode非常相似的做法,看到介面很快就能上手!

Xamarin phoneword00010

簡直就一模一樣嘛⋯⋯view controller的連結也是透過拉藍色線

過去我鮮少使用Storyboard,多使用Xib,不過因Apple一直在推廣Storyboard(範例程式都以它為主),我們豈能守舊而唯Xib獨尊?想想過去技術高手只想用code,來處理App所有層面的事情,現在看起來是多麽不切實際呢!之所以會發明新的工具,就是想增進開發效率,所以讓我們來擁抱改變吧!

(繼續閱讀…)

[Xamarin][iOS] 深度了解專案:電話字 (Sample Project: Phoneword)

承接範例專案:電話字 (Sample Project: Phoneword),再來就是解釋它怎麼運作,包含Xamarin介面C#程式碼,還有很重要的是Xamarin.iOS Application的剖析。

Xamarin iOS Application03

  • References – Contains the assemblies required to build and run the application. If we expand the directory, we’ll see references to .NET assemblies such as System , System.Core, and System.Xml , as well as a reference to Xamarin’s Xamarin.iOS assembly.
  • Components – The Components directory houses ready-made features from the Xamarin Components store , a public marketplace for Xamarin code. This is similar to the NuGet Gallery for those familiar with Visual Studio. For more information on Xamarin Components, refer to the Xamarin Components walkthrough .
  • Resources – The Resources folder stores icons, launch images, and other media. Xamarin has a separate guide for Working with Resources that explores the role of this directory further.
  • Main.cs – This contains the main entry point of the application. To start the application, we pass in the name of the main application class, the AppDelegate .
  • AppDelegate.cs – This file contains the main application class and is responsible for creating the Window, building the user interface, and listening to events from the operating system.
  • MainStoryboard.storyboard – The Storyboard contains the visual design of the application’s user interface. Storyboard files open in a graphical editor called the iOS Designer.
  • Phoneword_iOSViewController.cs – The View Controller powers the screen (View) that a user sees and touches. The View Controller is responsible for handling interactions between the user and the View.
  • Phoneword_iOSViewController.designer.cs – The designer.cs is an auto-generated file that serves as the glue between controls in the View and their code representations in the View Controller. Because this is an internal plumbing file, the IDE will overwrite any manual changes and most of the time we can ignore this file. For more information on the relationship between the visual Designer and the backing code, refer to the Introduction to the iOS Designer guide.
  • Info.plist – Info.plist is where we set application properties such as the application name, icons, launch images, and more. This is a powerful file and a thorough introduction to it is available in theWorking with Property Lists guide.
  • Entitlements.plist – The entitlements property list lets us specify application capabilities (also called App Store Technologies) such as iCloud, PassKit, and more. More information on theEntitlements.plist can be found in the Working with Property Lists guide. For a general introduction to entitlements, refer to the Device Provisioning guide.

看起來和Xcode裡的檔案架構很類似呢!學習來格外輕鬆~

(繼續閱讀…)

[Xamarin][iOS] 範例專案:工作清單 (Sample Project: Tasky)

在瞭解Xamarin介紹與研究後,接著就去下載並且安裝Xamarin Studio,再來當然就是要來跑「飯粒」專案囉~如此可快速上手Xamarin!

官方提供的範例專案:工作清單 (Sample Project: Tasky),下載後開啟專案,即可直接編譯執行,除了在模擬器 (Simulator)上跑,也能在實機 (Device)上跑呢!而模擬器居然是開啟Xcode附帶的iOS模擬器,所以感覺相當親切:)~

Xamarin before

(繼續閱讀…)

[Xamarin][iOS] 範例專案:電話字 (Sample Project: Phoneword)

有目標的學習是最快學會一套工具的最好方式!於是乎,Xamarin官方的快速開始教學範例專案:電話字 (Sample Project: Phoneword),引領我熟悉這有著神秘面紗的IDE (整合開發環境)

Xamarin Phoneword

這畫面看起來是不是很像Xcode的樣子呀?!

(繼續閱讀…)

[APP] 女王的密室

智慧手機平板電腦開始要顛覆傳統的電視節目,過去要call in/out才能夠即時跟電視機前的觀眾互動,現在只要透過App及能一起參與遊戲,實在令我大開眼界呢!台視週六晚上的節目-女王的密室,今日我實際參與問答活動,感覺真是新鮮呢!

女王的密室

(繼續閱讀…)

Xamarin 介紹與研究

因為有個新專案,必須開發兩個平台iOSAndroid,想要降低成本便選擇Xamarin這個方案,一年半前已經與同事們一起研究過它的特色,今日再次研究感覺特別不一樣,因為Xamarin又進化許多啦~

Xamarin

(繼續閱讀…)

[iOS] 延長顯示啟動畫面的時間

Launch Image (Launch Screen)顯示時間是由系統決定,不過我們可透過讓App睡覺的方式,來延長顯示啟動畫面的時間

iPhone_6_Garbage_launch

垃圾管家App開啟畫面為例。

只要一行程式碼,即可做到延遲的效果喔!在AppDelegate.m中:


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    sleep(5);
}

參考:increase launch image time on xcode

[軟體] Skala Preview 即時預覽設計

工欲善其事,必先利其器。這個軟體Skala Preview即時預覽設計,可以在Mac上做好介面設計,立馬可在iOS和Android上預覽效果!

Skala Preview

(繼續閱讀…)

標籤雲