最近學習ios,發現很多書中都提到MainWindow模版,無奈Xcode4.2沒有這個模版,參考網上的文章和自己的見解,終於解決這個問題了,在這個做個筆記,希望和我有同樣的問題的童鞋少走彎路。第1步,開啟xcode4.2資訊建一個Empty Application工程點擊Next,在Product Name中填入AddMainWindow(這個根據你自己的需要命名)點擊Next,儲存。我們現在運行試一試,不出意外,出現報錯Applications are expected to have a
來源:http://blog.csdn.net/d8111/archive/2008/09/11/2914079.aspx struts2雖然繼承了webwork優秀的MVC分離,可是有很多地方讓人百思不得其解!最讓人離譜的是,返回的結果集中居然沒有String,xml這兩種非常常用的類型。還是自己動手,豐衣足食: 第一種方式:使用“PlainText Result” 先看官方文檔對plain text結果的定義:“A result that send the content
super.onCreate(savedInstanceState); TextView txtInfo = new TextView(this); SpannableString ss = new SpannableString("紅色打電話斜體刪除線綠色底線圖片:."); ss.setSpan(new ForegroundColorSpan(Color.RED), 0, 2,
### direct log messages to stdout ###log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.outlog4j.appender.stdout.layout=org.apache.log4j.PatternLayoutlog4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE}
dwr整合spring時,出現以下異常。throw 'allowScriptTagRemoting is false.';//#DWR-INSERT//#DWR-REPLYdwr.engine.remote.handleException("2","0",{javaClassName:"java.lang.Throwable",message:"Error"});java.lang.IllegalArgumentException: object is not an instance of
用eclipse中的m2eclipse更新nexus indexs 時,發生如下錯誤!MESSAGE Unable to update index for nexus_mirror|http://localhost:8081/nexus/content/groups/public/!STACK 0java.io.IOException: No response received after 60000 at
需要讀取工程目錄中的一個檔案內容,這個檔案是文本或者其他。或者是什麼xml檔案。但是應該要怎麼做呢。畢竟部署到手機後路徑什麼的會變化。經查,Application有一個GetResourceStream的方法,這樣就可以讀到工程中的檔案的流資料。那就實驗下吧。添加一個建立項:隨意在這檔案中寫一些資料。在MainPage.xaml中添加一個TextBox,其Name屬性為test.然後在PageLoaded事件中嘗試讀取這個檔案:StreamResourceInfo sri =
要解析類似以下如此資料:{"weatherinfo":{"city":"長安","cityid":"101110102","temp":"7","WD":"西風","WS":"1級","SD":"50%","WSE":"1","time":"18:40","isRadar":"0","Radar":""}}建立了那麼兩個類供解析後存放資料用。class WhetherInfo { public string city { get; set; }