標籤:今天更新sdk,遇到了更新下載失敗問題: Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFetched Add-ons List successfullyFetching URL: https://dl-ssl.google.com/android/repository/repository-8.xmlDone loading packages.Fetching https://dl-
標籤:轉自:http://blog.163.com/ray_jun/blog/static/1670536422011101225132544/出處:http://superman474.blog.163.com/blog/static/120661462011101115811199/ 關於iOS 5的本地檔案儲存Marco(Instapaper
標籤:android menu 在父類中添加如下代碼public boolean isOpen = flase;//預設為false@Overridepublic boolean onCreateOptionsMenu(Menu menu) {getMenuInflater().inflate(R.menu.news_ds_menu, menu);return true;//顯示出來}public void
標籤:ConnectivityManagerConnectivityManager作為安卓網路連接管理類,主要功能如下: 1. 通知應用網路狀態的改變,發送廣播 ACTION:CONNECTIVITY_ACTION 2. WiFi,GPRS等網路的串連管理(是否可用,串連狀態等) 3. 提供了一種api來讓應用去請求或是選擇網路來進行資料的傳輸需要的許可權: <uses-permission
標籤:一、位元運算介紹 1、運算子:& | ^ ~ << >> 用途: 直接操作二進位,省記憶體,效率高。 注意 只能用於整型運算元(char ,short,int ,long) 運算規則: 1)& 按位與 全1才1 否則0 : 只有對應的兩個二進位均為1時,結果位才為1,否則為0 用6和3這個例子。 #include <stdio.h>int main(int argc, const char * argv[]) {
標籤:在mac上出現這種錯誤,多是與檔案夾的許可權有關,有人建議把~/.meteor目錄刪除,重新下載安裝。在牆內重新下載安裝的代價非常之大。簡單的解決方案,便是把~/.meteor,以及當前項目目錄的許可權完全放開chmod -R 777 *在build過程中遇到未名的錯誤,可以嘗試把cordova plugin移除,重新添加。注意不要使用sudo。 Android or iOS 運行 meteor App 螢幕一片空白 White screen的解決方案
標籤://QQ登入- (void)qqBtnClick:(UIButton *)btn{ NSString *platformName = [UMSocialSnsPlatformManager getSnsPlatformString:UMSocialSnsTypeMobileQQ]; UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager
標籤:添加 URL schemes 步驟:1.開啟info.plist檔案。2.點擊 “+ ”號添加,或者在列表上點擊滑鼠右鍵,選擇 Add Row。3.選擇 URL types。4.點擊三角號展開,找到 URL identifier,在其右邊添加 com.你的公司名.項目名稱。5.在 ”item 0 “點擊“ + ”號添加,選擇 URL schemes。6.在 URL
標籤:1. Applet 類Applet 類在使用時沒有main()方法,不能獨立運行,必須嵌入到網頁中,在網頁上顯示各種資訊和效果。所以Applet 類用於網頁互動的應用較為普遍。我們一般把Java Applet 程式稱為Java AppletApplet 類在java.applet 包中,在使用時必須載入該包Applet 類的定義形式: public class Applet extends Panel2. Apple 類中的方法生命週期方法:public void init()
標籤:*********#import "ViewController.h"#import "Province.h"@interface ViewController ()<UIPickerViewDataSource,UIPickerViewDelegate>@property (nonatomic,strong)NSArray *provinces;@property (nonatomic,assign)NSInteger
標籤:***控制層#import "ViewController.h"#import "CZKeyboardToolbar.h"@interface ViewController ()<CZKeyboardToolbarDelegate>@property (strong, nonatomic) UIDatePicker *datepicker;@property (weak, nonatomic) IBOutlet UITextField
標籤: 如題的問題,又是個讓我抓狂了大半天的問題,還是做個記錄,有與類似問題的同學可參考,但不一定對。具體問題還需具體分析。我遇到的需求是這樣的:有一個輸入框,輸入框內輸入文字,文字字數限制在20字。 我採用了UITextField作為我的輸入框控制項,並且在委託方法: - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRa
標籤:一、設定meta標籤<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no;" />見文知意<meta name="apple-mobile-web-app-capable" content="yes"/>允許全螢幕模式瀏覽<meta
標籤:breakpoint set -s ""breakpoint set -M <method> ( --method <method> ) -S <selector> ( --selector <selector> ) -b
標籤:算是在平時學習中對遺留的問題或者搜尋出來的問題的答案吧。 1. 聲明property文法為: @property(參數)類型 名字; 這裡的參數主要分為以下幾類: 讀寫屬性(readwrite/readonly) setter語意(assign/retain/copy) 原子性atomicity(nonatomic)其它的含義不是很清楚,先copy別人的用著吧,還包括其它的什麼strong,weak什麼的,什麼引用計數+1啥的。 iOS學習零散知識點記錄
標籤:筆記:1. 在fragment裡面使用findViewById方法:listView = (ListView)view.findViewById(R.id.flexible_ListView); 2.
標籤:一.啟動Activity需要兩個Binder線程(Binder_1;Binder_2)的支援。啟動Service同樣需要。 他倆的主線程都是ActivityThread。 Looper.loop()是在ActivityThread的main(string[] args)中被調用的public static void main(String[] args) { SamplingProfilerIntegration.start();
標籤:力學動畫以dynamicAnimate為首的力學動畫是蘋果在iOS7加入的API,裡麵包含了很多力學行為,這套API是基於Box2d實現的。其中包含了重力、碰撞、推、甩、和自訂行為。涉及到的類如下涉及類描述UIDynamicAnimator相當於一個manager,用於管理所有添加的力學行為UIDynamicBehavior所有力學行為的父類,是一個抽象類別UIGravityBehavior重力UICollisionBehavior碰撞,彈力UIAttachmentBehavior吸附力U
標籤:今天在一台新機上,配置了一下Android環境。系統為win7旗艦版64位,下載了java8的安裝包“jdk-8u40-windows-x64.exe”,安裝在D盤:安裝完成,在案頭右鍵開啟命令列視窗,輸入“java
標籤:cookie android 之前的更新方式一搜cookies的使用,很容易搜到很多文章,基本的幾步大致相同,如:基本上都要求大家先調用cookieManager.removeAllCookie()或者調用 cookieManager.removeSessionCookie(),這樣確實每一次的setCookie都能寫入新的cookie,簡單粗暴有效。遇到的問題大家看setCookies的方法: /** *