Time of Update: 2015-03-03
標籤:在IPAD開發中,有一個很有趣的視圖控制器,UIPopoverControllr,它的初始化必須要設定一個"內容視圖",相當於它本身只是作為一個“容器”,而顯示的內容還需要另外一個視圖。初始化: -(void)show:(UIButton *)button{// TableViewController *tb=[[TableViewController alloc]initWithNibName:nil
Time of Update: 2015-03-03
標籤:一. 允許網頁寬度自動調整: "自適應網頁設計"到底是怎麼做到的?其實並不難。 首先,在網頁代碼的頭部,加入一行viewport元標籤。<meta name="viewport" content="width=device-width, initial-scale=1" />
Time of Update: 2015-03-03
標籤:android padding layout_margin 林炳文Evankaka原創作品。轉載請註明出處http://blog.csdn.net/evankaka 一、定義
Time of Update: 2015-03-03
標籤:/// <summary> /// 使視窗的中的指定控制項支援運行時移動 /// TODO:運行時縮放 /// </summary> public class ControlMoveResize { #region 私人成員 bool IsMoving = false; Point pCtrlLastCoordinate = new Point(0, 0); Point
Time of Update: 2015-03-03
標籤:代碼布局 動態代碼 代碼布局和xml布局 動態代碼布局如何添加代碼布局代碼布局注意的問題代碼布局和XML布局的效能比較如何添加代碼布局for example —— 簡單布局LinearLayout LinearLayout llayout = new LinearLayout(mContext);
Time of Update: 2015-03-03
標籤:android<pre name="code" class="html"><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
Time of Update: 2015-03-03
標籤:ios手遊錄影sdk sharerec手遊錄影sdk 手遊錄影分享sdk android手遊錄影sdk ShareREC for Android v1.0.4 已經發布版本:V1.0.4
Time of Update: 2015-03-03
標籤:在iOS UILabel,UITextView,UIAlertView等控制項中都可以使用使用方法如下NSString *s = [NSString stringWithFormat:@"This is a smiley \ue415 %C face",0xE05A]; NSLog(@"11----%@",s); label.text=s;
Time of Update: 2015-03-03
標籤:1.自訂RadioButton的setMinimumWidth無效查文檔,無法保證一定設定成功,可能受父Layout的影響而無法生效。而我的布局正是自訂的FlowLayoutSets the minimum width of the view. It is not guaranteed the view will be able to achieve this minimum width (for example, if its parent layout constrains it
Time of Update: 2015-03-03
標籤:免root許可權 android截屏 /** * 返回的 bitmap就是螢幕的內容 */private static Bitmap takeScreenShot(Activity activity) {View view = activity.getWindow().getDecorView();//Enables or disables the drawing
Time of Update: 2015-03-02
標籤:1. Object-c的類可以多重繼承嗎?可以實現多個介面嗎?Category是什嗎?重寫一個類的方式用繼承好還是分類好?為什嗎?答: Object-c的類不可以多重繼承;可以實現多個介面,通過實現多個介面可以完成C++的多重繼承;Category是類別,一般情況用分類好,用Category去重寫類的方法,僅對本Category有效,不會影響到其他類與原有類的關係。2. #import 跟#include 又什麼區別,@class呢, #import<> 跟
Time of Update: 2015-03-02
標籤:記憶體管理原則(配對原則):只要出現了new,alloc,retain方法,就要配對出現release,autorelease 1:對象存入到自動釋放池中,當這個池子被銷毀的時候他會對池子中所有的對象進行一次release操作。 2:autorelease 加入幾次,就會被釋放幾次3:不管你這個對象時在@autoreleasepool
Time of Update: 2015-03-02
標籤:tween 動畫有四種//透明度動畫AlphaAnimation aa = (AlphaAnimation) AnimationUtils.loadAnimation(MainActivity.this,R.anim.myalpha);//位移動畫TranslateAnimation ta = new TranslateAnimation( Animation.RELATIVE_TO_SELF, 0.5f,
Time of Update: 2015-03-02
標籤:Logback建立於三個主要類之上:Logger,Appender和Layout。這三種組件協同工作,使開發人員可以按照訊息類型和層級來記錄訊息,還可以在程式運行期內控制訊息的輸出格式和輸出目的地。Logger類是logback-classic模組的一部分,而Appender和Layout介面來自logback-core。作為一個多用途模組,logback-core不包含任何logger。1.
Time of Update: 2015-03-02
標籤:活動概況時間:2015年03月14日13:30-17:00地點:上海市金沙江路3131號三樓多功能廳主辦:APICloud、Ping++、雲知聲、TopGeek網址:www.apicloud.com費用:免費*場地屆時會提供30張免費停車券,先到先得 活動背景對於創業團隊和開發人員來說,如何快速布局移動端、佔領移動市場,時間和成本都是必須考慮的因素;如何用“模版”的方式快速建立
Time of Update: 2015-03-02
標籤:android layoutlib 今天匯入一個項目,發現運行不能,紅叉叉表示com.android.internal.R.的一系列引用都失敗。查了一下,這些都在一個SDK內建包layoutlib.jar中。SDK路徑\platforms\api版本\data 下就有 layoutlib.jar 直接把這些扔到libs檔案夾中,紅叉叉消失,運行又報錯:Conversion to Dalvik format
Time of Update: 2015-03-02
標籤:quickdev android遊戲 休閒遊戲 crazybird 瘋狂的小小鳥 《超級平衡石球》是快開客遊戲工作室2015年新年的第一個遊戲作品,是以Unity遊戲引擎打造,簡單而不失遊戲型的重力平衡控制休閒遊戲,遊戲中你需要任意方向傾斜手機控制小球的移動並躲避黑色的球洞並努力滾到綠色球洞以完成遊戲!你是否可以一口氣完全
Time of Update: 2015-03-02
標籤:目前關於IOS效能最佳化的教程較少,決定寫一個《IOS效能調優系列》,主要關注與記憶體流失、效能最佳化、流量和電量分析幾個方面。XCode已經提供了非常強大的效能調優工具,結合幾個第三方工具和一些技巧,進行效能最佳化非常簡單。第一篇先寫寫最簡單的,Analyze靜態分析。相信IOS開發人員在App進行Build或Archive時,會產生很多編譯警告,這些警告是編譯時間產生的,靜態分析的過程也類似,在XCode
Time of Update: 2015-03-02
標籤:在頁面跳轉時,若想用pushViewController,則必須在AppDelegate設定UINavigationController,否則pushViewController無效。並且用pushViewController從A跳往B後,在B頁面內建“Back”按鈕返回上一頁。類似於這樣設定,在AppDelegate中 1 - (BOOL)application:(UIApplication *)application
Time of Update: 2015-03-02
標籤:說明:記錄下學習IOS的一些瑣碎,有些在現在看起來很簡單幼稚,不過權當學習足跡吧!1.在定義UITableViewCell時,組件可以直接加,也可以添加到contentView中[self addSubViews:myBtn];[self.contentView