Time of Update: 2015-02-05
標籤:取得當前的年月日,當前的時分秒獲得,周幾和星期幾獲得NSDate*date = [NSDate date];NSCalendar*calendar = [NSCalendar currentCalendar];NSDateComponents*comps; // 年月日獲得comps =[calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit |NSDayCalendarUnit)
Time of Update: 2015-02-04
標籤:##### ERROR stack traceorg.broadinstitute.sting.utils.exceptions.ReviewedStingException: An error occurred during the traversal. Message=GC overhead limit exceeded at
Time of Update: 2015-02-03
標籤:談起Android程式開發,就需要瞭解其四個主要的組件:Activity、Service、ContentProvider、 BroadcastReceiver。而其中Activity是唯一直接控製程序介面呈現,直面使用者操作的組件(當然BrowadCastReceiver也能通過案頭控制項(App
Time of Update: 2015-02-03
標籤:android mediaplayer main.xml代碼如下:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="
Time of Update: 2015-02-05
標籤: // 將像素point由point所在視圖轉換到目標視圖view中,返回在目標視圖view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;// 將像素point從view中轉換到當前視圖中,返回在當前視圖中的像素值- (CGPoint)convertPoint:(CGPoint)point fromView:(UIView *)view;//
Time of Update: 2015-02-03
標籤:android 儲存 檔案掛載 mtp pc 使用情境:
Time of Update: 2015-02-03
標籤:A.概念1.移動app非常容易受到其他的系統、軟體事件的幹擾,如來電、鎖屏2.app受到幹擾的時候,UIApplication會通知delegate,來代理處理幹擾事件3.delegate可以處理的事件(1)app聲明周期(啟動、關閉)(2)系統事件(來電)(3)緊急事件(記憶體警告) B.使用稱為delegate的條件:遵守UIApplicationDelegate協議項目開始會自動建立:AppDelegate 1.delegate方法 1 -
Time of Update: 2015-02-04
標籤:android前言 本篇部落格要給大家分享的是在Android開發中遇到滑動資料錯亂的問題如何解決,先描述一些為什麼會出現資料錯亂,熟悉ListView複用原因的朋友一定知道,我們在開發中為了最佳化資料顯示,避免卡頓,會利用ListView的緩衝機制來複用我們的View。 來看一段我們經常會寫的代碼:package com.xiaowu.adapter;import com.xiaowu.activity.R;import
Time of Update: 2015-02-03
標籤:使用monkey help 命令查看命令參數,如下:C:\Users\chenfenping>adb shell monkey -helpusage: monkey [-p ALLOWED_PACKAGE [-p ALLOWED_PACKAGE] ...][-c MAIN_CATEGORY [-c MAIN_CATEGORY] ...][--ignore-crashes]
Time of Update: 2015-02-03
標籤:建立菜單 在AndroidSDK中,無需從頭建立菜單對象。因為一個活動只與一個菜單關聯,所以Android會為該活動建立此菜單,然後將它傳給Activity類的onCreateOptionsMenu回調。此方法可用於使用一組功能表項目填充單個傳入的菜單。@Override public boolean onCreateOptionsMenu(Menu menu) { //.... return
Time of Update: 2015-02-01
標籤:剛開始在onconfigurationChanged中監聽,結果發現該方法在configuration變化即設定檔發生變化時才會被調用,如橫豎屏切換,android重新載入設定檔時。而鍵盤隱藏不會觸發該方法。後來採用如下方法完美解決了鍵盤隱藏監聽事件。//該Activity的最外層LayoutfinalView activityRootView =
Time of Update: 2015-02-02
標籤:Android開發中,在Java層可以方便的捕獲crashlog,但對於 Native 層的 crashlog 通常無法直接擷取,只能通過系統的logcat來分析crash日誌。做過 Linux 和 Win32 開發的都知道,在pc上程式crash時可以產生 core dump 檔案通過相關的工具分析函數呼叫堆疊及崩潰時的記憶體資訊。那麼作為軟體開發人員有沒有方法自己擷取native層的crashlog呢?Android 系統是 Linux
Time of Update: 2015-02-02
標籤:intent英文意思是意圖,pending表示即將發生或來臨的事情。 PendingIntent這個類用於處理即將發生的事情。比如在通知Notification中用於跳轉頁面,但不是馬上跳轉。Intent 是及時啟動,intent 隨所在的activity 消失而消失。 PendingIntent 可以看作是對intent的封裝,通常通過getActivity,getBroadcast
Time of Update: 2015-02-02
標籤:ios 相簿 1:首先遵守協議UIImagePickerControllerDelegate,UINavigationControllerDelegate2:- (void)imageChange:(UIButton *)button{ NSLog(@"調用系統相簿"); if (button!=self.button) { &
Time of Update: 2015-01-29
標籤:原文 http://blog.csdn.net/donghong2008/article/details/38020855 網路上有很多開發人員提問怎麼轉讓App並想知道具體的流程。實際上Appstore的App轉讓流程還是比較簡單的,下面特酷吧根據自己的實際操作總結下iOS Appstore中App的轉讓流程,供大家參考。對網路開發不明白的朋友可以看IOS研究之網路編程Cocoa
Time of Update: 2015-01-29
標籤:本文轉載至 http://blog.csdn.net/xunyn/article/details/8064984 原文地址http://www.189works.com/article-89289-1.htmlMBProgressHUD 是: http://github.com/matej/MBProgressHUD這裡介紹一下網友開源的MBProgressHUD類,實現等待框, 一、網上下載 MBProgessHUD
Time of Update: 2015-02-01
標籤:nagios nagios check_nrpe not defined 最近在做heartbeat監控的時候,在nagios伺服器端警示提示:NRPE: Command ‘check_heartbeat‘ not defined但是在nagios用戶端/usr/local/nagios/libexec/check_nrpe -H 192.168.3.211 -c
Time of Update: 2015-01-29
標籤:詳細的圖文可以到我的百度經驗去查看:http://jingyan.baidu.com/article/cd4c2979eda109756e6e60de.html首先是註冊頁面的布局:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2015-01-29
標籤:1、適合儲存輕量級的本機資料。2、NSUserDefaults支援的資料格式有:NSNumber、NSData、NSDate、NSString、NSArray、NSDictionary、BOOL3、以鍵值對的形式進行儲存4、儲存時間為整體應用程式的儲存時間,如果想需要刪除,需要刪除整體應用程式//初始化一個userDefaultsNSUserDefaults *defaults = [NSUserDefaults
Time of Update: 2015-01-29
標籤:Here‘s What‘s New:Invite up to 1,000 external testers using just their email addressEasy to use TestFlight iOS app available on the App StoreNo need to keep track of UDIDs or provisioning profilesBeta testing directly inside of iTunes Connect