Time of Update: 2015-07-13
標籤:我的學習日誌003:“文字長度--button與label的互動”程式 交代一下我做程式的工具:mac os x虛擬機器10.9.3 Xcode6 百度^-^
Time of Update: 2015-07-13
標籤:application 控制台 報錯 objective-c ios 控制台執行出現如下報錯Application windows are expected to have a root view controller at the end of application
Time of Update: 2015-07-13
標籤:leetcode java trapping rain water 題意:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after
Time of Update: 2015-07-13
標籤:android android-studio fresco 從github下載下來之後運行,遇到的問題就是下面這個Error:Execution failed for task ‘:imagepipeline:ndk_build_bitmaps‘.> A problem occurred starting process ‘command
Time of Update: 2015-07-13
標籤:【設定全屏】在setLayout之前使用如下代碼1 requestWindowFeature(Window.FEATURE_NO_TITLE);//隱藏標題2 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,3 WindowManager.LayoutParams.FLAG_FULLSCREEN);//設定全屏【強制橫屏】在layout中添加1
Time of Update: 2015-07-13
標籤:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the
Time of Update: 2015-07-13
標籤:public class LengthFilter implements InputFilter { public LengthFilter(int max) { mMax = max; } @Override public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int
Time of Update: 2015-07-13
標籤:下面介紹一下我常用的iOS開發或者最佳化的小工具由於很多工具大多數部落格都已經介紹過了,我就列舉一些我認為還不錯但是大家不常列舉的:Crafterhttps://github.com/krzysztofzablocki/crafter你是否經常見一個Project之後你經常會建立一個Podfile,然後把自己一些幾乎每個項目都要用的第三方庫加進去或者,添加ignore檔案等等重複的事情,Crafter
Time of Update: 2015-07-13
標籤: <form action="flow_myTaskList"><input type="hidden" name="approval" value="true"/><!-- 表單操作 --> <div id="InputDetailBar" style="float:none"><!--onclick事件在submit之前觸發--><input type="image"
Time of Update: 2015-07-13
標籤:android github r檔案 這個問題相信很多人從網上已經搜到不少的解決方案,android 無法產生R檔案
Time of Update: 2015-07-13
標籤:不多說,貼上代碼,大家都明白import java.io.File;import android.net.Uri;public class Transition {/** * @param uri * @return * 中文處理 */public static String transition(String imageUrl) {File f = new File(imageUrl);if(f.exists()){//正常邏輯代碼}else{//處理中文路徑/*try
Time of Update: 2015-07-13
標籤:最近看了一些開發的東西,匯總了一些源碼。希望可以給大家有些協助!1.Android 源碼解析—PagerSlidingTabStrippagerSlidingTabStrip 實現聯動效果的原理是,它引用了 ViewPager 的OnPageChangeListener。 但是 viewpager 註冊的 listener 不是自身的OnPageChangeListener,而是 pagerSlidingTabStrip 內部類PageListener。
Time of Update: 2015-07-13
標籤:UITabBarController使用詳解 UITabBarController是IOS中很常用的一個viewController,例如系統的鬧鐘程 序,ipod程式等。UITabBarController通常作為整個程式的rootViewController,而且不能添加到別的 container
Time of Update: 2015-07-13
標籤:轉自:http://my.oschina.net/u/1025290/blog/300037#ifndef UI_DEFINITIONS#define UI_DEFINITIONS#pragma mark UI相關常量//導覽列高度#define CONTENT_NAVIGATIONBAR_HEIGHT 44//底部tabbar 高度#define CONTENT_TABBAR_HEIGHT 49//英文狀態下鍵盤的高度#define ENGISH_KEYBOARD_HEIGHT 216/
Time of Update: 2015-07-13
標籤:手勢 收合 鍵盤 空白 點擊 iOS點擊空白處或點擊背景收合鍵盤在viewDidLoad中添加手勢- (void)viewDidLoad{ [super viewDidLoad]; //添加手勢UITapGestureRecognizer *tap1 =
Time of Update: 2015-07-13
標籤:這個功能的重點就是在如何判斷應用是第一次啟動的. 其實很簡單我們只需要在一個類裡面寫好使用者引導頁面 基本上都是使用UIScrollView 來實現,建立一個繼承於UIViewController的類 命名為 UserGuideViewController ,在UserGuideViewController.m 寫 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 //
Time of Update: 2015-07-13
標籤:Android的4中資料存放區方式:1.SharedPreference2.SQLite3.ContentProvider4.File 1.SharedPreference1)輕量級資料存放區方式A2)本質是基於XML檔案儲存體key-value索引值對資料3)用於儲存應用程式的 參數/屬性的配置資訊 SharedPreference對象本身只能擷取資料而不支援儲存和修改,修改是通過Editor來實現 實現SharedPreference儲存的步驟:
Time of Update: 2015-07-13
標籤:推播通知和NSNotification是有區別的:NSNotification:是看不到的推播通知:是可以看到的IOS中提供了兩種推播通知本地推播通知:(Local Notification):手機應用本身的通知,比如:鬧鈴遠程推播通知:(Remote
Time of Update: 2015-07-13
標籤:<!doctype html><html><head> <meta charset="UTF-8"> <title>搖晃判斷</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,
Time of Update: 2015-07-13
標籤:這次添加的是自己新瞭解到的隨筆,要讓css active偽類生效,只需要給這個元素的touchstart/touchend綁定一個空的匿名方法即可成功。。。下面簡單舉個栗子複製代碼<!DOCTYPE html><html><head><style>p { color: yellow;}p:active { color: