用layerUITextView.layer.cornerRadius = 6;UITextView.layer.masksToBounds = YES;角度可以自己調 需要注意,如果使用上面的東西的話,要加上標頭檔:#import <QuartzCore/QuartzCore.h> 如果沒加編譯報錯: erro:request for member 'cornerRadius' in somenthing not a structure or unionerro:request
+entityForName: could not locate an NSManagedObjectModel for entity name 今天編寫資料庫Coredata用來查詢資料的時候,顯示此錯誤。網上找不知道什麼原因。 看到這個文章,感覺有點類似,雖然不是一個東西。http://blog.csdn.net/cjopengler/article/details/6765786我的錯誤應該也是null
用sql實現查詢重複記錄的代碼 1、尋找表中多餘的重複記錄,重複記錄是根據單個欄位(peopleId)來判斷select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1)2、刪除表中多餘的重複記錄,重複記錄是根據單個欄位(peopleId)來判斷,只留有rowid最小的記錄delete from people
文章目錄 Short Answer: Mobile Web Apps are Ready to Go OfflineHow is an Offline Web App Even Possible?So, is a Mobile Web App a Good Solution for Offline Features or Not?There is Much More to the Native vs. Web DecisionThink Offline
自從xocde升級到4.5又換了台新mac之後,xcode就一直不能運行在真機上,在網上搜尋了2天,終於全部解決了。用兩部iphone4測試,一部是ios5另外一部是ios6,一開始,兩部機器都運行不了xcode,一直提示的錯誤是:“Choose adestination with a supported architecture in order to run on thisdevice.” 這麼不著邊際的錯誤,我上網去搜尋,發現大部分人說的是,build
1、Datediff:1.1算出日期差:1.access: datediff('d',fixdate,getdate())2.sqlserver: datediff(day,fixdate,getdate())ACCESS執行個體: select * from table where datediff('d',fixdate,getdate())>0sqlserver執行個體: select * from table where