Time of Update: 2015-01-26
標籤:什麼是Segue?Storyboard上每一根用來介面跳轉的線,都是一個UIStoryboardSegue對象(簡稱Segue)Segue的屬性?每一個Segue對象,都有3個屬性 唯一標識@property (nonatomic,readonly)NSString*identifier; 來源控制器@property (nonatomic,readonly)idsourceViewController; 目標控制器@property
Time of Update: 2015-01-26
標籤:最近在做項目,小組幾個回了家。介面暫時沒人做,用到自訂對話方塊只能臨時去學。現在把對話方塊的相關整理。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Time of Update: 2015-01-26
標籤:main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Time of Update: 2015-01-26
標籤:有時間再寫個日期時間合在一起的自訂時間選擇對話方塊<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=
Time of Update: 2015-01-26
標籤:我們知道,在 RelativeLayout 布局中有很多特殊的屬性,通常在載入布局之前,在相關的xml檔案中進行靜態設定即可。但是,在有些情況下,我們需要動態設定布局的屬性,在不同的條件下設定不同的布局相片順序,這時候就需要用到 RelativeLayout.LayoutParams.addRule() 方法,該方法有兩種重載方式: addRule(int verb)
Time of Update: 2015-01-26
標籤:Android.Hacks讀書筆記01 #1#權重布局之解析: LinearLayout ’s android:weightSum LinearLayout ’s child android:layout_weight 相容適配的時候,比較方便: Defines the maximum weight sum. If unspecified, the sum is computed
Time of Update: 2015-01-26
標籤:1.檔案上傳的範例程式碼 // 設定url NSURL *url = [NSURL URLWithString:@"http://localhost/photo"]; // 佈建要求 self.postRequest = [ASIFormDataRequest requestWithURL:url]; // 指定要上傳檔案的路徑
Time of Update: 2015-01-26
標籤:#!/bin/bash#----------------------------------------------------------------------------------# 功能:編譯xcode項目並打ipa包# 使用說明:#編譯project#ipa-package <project directory> [-c <project configuration>] [-n] [-o <ipa output directory>]##
Time of Update: 2015-01-26
標籤:轉載自:http://blog.csdn.net/yogo_t/article/details/43057499----------------------------------首先,先說的是我每個項目都會用到的一個模板頁,這個我遇到大大小小的坑之後定義好的一個html檔案 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <!--
Time of Update: 2015-01-26
標籤:1 、ios navigationcontroller 滑動返回滑動返回是navigationcontroller預設返回按鈕內建的功能,如果返回按鈕自訂該功能失效,解決的辦法有兩個:①self.navigationItem.backBarButtonItem = [[UIBarButtonItemalloc]initWithCustomView:button];//這個方法用不了只能用self.navigationItem.backBarButtonItem =
Time of Update: 2015-01-26
標籤:ASIHTTPRequest繼承自NSOperation,這樣就可以把多個請求放在一個隊列中,這樣便於管理多個請求 ASIHTTPRequest *request1 = [[ASIHTTPRequest alloc]init]; ASIHTTPRequest *request2 = [[ASIHTTPRequest alloc]init]; ASIHTTPRequest *request3 =
Time of Update: 2015-01-26
標籤:iOS- 詳解文字屬性Attributes 2014-03-01 21:06:18cnblogs.com-詳解文字屬性Attributes1.NSKernAttributeName: @10 調整字句 kerning 字句調整 2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 設定字型 3.NSForegroundColorAttributeName :[UIColor
Time of Update: 2015-01-26
標籤: 一開始接觸android應用項目時,在項目快上線時策劃要求加個高亮,每次都是直接從網上百度一下,現在做遊戲了,卻還是這個需求,這裡備份一下方便後續的尋找,畢竟是自己寫好且驗證沒問題的 :) 首先,在Activity裡添加一下代碼:
Time of Update: 2015-01-26
標籤:android studio .so can't find *.so 情境:Android studio
Time of Update: 2015-01-26
標籤:android應用 android開發 rest json 分享一個Android和java調用RESTful
Time of Update: 2015-01-26
標籤:DescriptionA number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (the “receiving schools”). Note that if B is in the
Time of Update: 2015-01-26
標籤:android listview 資料 混亂 前幾天寫代碼的時候,在listview 中添加了checkbox,原本覺著邏輯沒有任何問題,但測試的時候,發現checkbox的狀態是混亂的,比如我這裡選的1、2等我再傳進來的時候變成了</pre><p></p><p><img
Time of Update: 2015-01-26
標籤:Android實現應用Theme的方式是通過apk來實現的。下面是一個demo。 1.首先必須建立一個apk,類似的外掛程式,然後在該apk的AndroidManifest.xml檔案的application加上一個meta-data。這個是下一步尋找是否是自己的外掛程式的apk做一個標記。<meta-data android:name="skin_demo2_plugin" android:value="com.example.
Time of Update: 2015-01-26
標籤:(1)Xcode > Product > Scheme > Edit Scheme > Options,修改Application Region為“中國”。(2)但是!但是,這個修改仍然存在一些問題。比如輸入中文地址(如北京)進行地理編碼後,返回的地標地址全是英文(beijing
Time of Update: 2015-01-26
標籤:最近在做的項目中,需要在iPhone上接上帶麥耳機(蘋果叫Headset,不帶麥耳機叫Headphone),然後實現同步錄音和播放。這個功能實現之後,需要改變錄音、播放的輸入源。對於實現同步錄音和播放功能,肯定就要使用到底層的介面,用AVAudioRecorder/AVAudioPlayer是無法實現的。我研究了iOS聲音處理的知識之後,發現自己實現太過麻煩,需要用到至少包括AudioQueue/AudioBuffer等等,然後還有各種複雜的C