原创 友盟分享到朋友圈,QQ,新浪微博的注意事項

1.http://dev.umeng.com/social/ios/detail-share 需要看友盟分享的官方文檔,倒入相關的庫 2.步驟1.添加URL scheme 3.去微信、QQ、新浪微博開發者平臺申請相關的appid和appk

原创 iOS 8 毛玻璃效果(模糊)

         //毛玻璃效果 ios8     if ([[UIDevice currentDevice] systemVersion].floatValue>=8.0) {         //模糊效果         U

原创 常見的程序的屬性獲取(版本號,bundle id 等)

NSString *deviceID = [UIDevice currentDevice] uniqueIdentifier];//設備id// NSString *deviceID = [UIApplication sharedAp

原创 數據請求之前判斷是否有網

1.系統自帶的 +(BOOL)connectedNetWork {     //創建零地址,0.0.0.0的地址表示查詢本機的網絡連接狀態         struct sockaddr_storage zeroAddress;

原创 第三方庫小結之進度條

1.MBProgressHUD /*  MBProgressHUD 是對象方法  先創建一個全局的MBProgressHUD  MBProgressHUD *HUD;  導入頭文件,實現協議  點擊進去可以看到方法  這

原创 CocoaPods操作

/********************************安裝ruby環境************************************/ $ curl -L https://get.rvm.io | bash -s

原创 比較差勁的自定義view

-(instancetype)initWithFrame:(CGRect)frame {    if (self=[superinitWithFrame:frame]) {                  self.layer.c

原创 SDWebImage的一些方法

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {     // 清除內存緩存      內存警告     [[SDWebImageMa

原创 CGRectGetMaxX&CGRectGetMidX的用法

在iOS的界面佈局中我們可以使用CGRectGetMaxX 這個方法來方便的獲取當前控件的x座標值+寬度的數值,這樣便可以方便佈局。  同理CGRectGetMaxY是獲取y座標值+控件高度的值 1. CGRectG

原创 微信文檔

http://pay.weixin.qq.com/wiki/doc/api/download/wechat_sdk_sample_ios_v3_pay.zip https://open.weixin.qq.com/cgi-bin/

原创 UIScrollView上面添加的uiftextfield如何失去第一響應者

在對底層的scrollview上面添加的的textfield如何失去第一響應者 //失去第一響應者 - (void)scrollViewAddGesture{     [_backScrollViewaddGestureRe

原创 UIAlertView的基本用法

     UIAlertView *alert = [[UIAlertViewalloc] initWithTitle:@"修改暱稱"message:nildelegate:selfcancelButtonTitle:@"取消"othe

原创 SVN的基本使用1

1.下載一個Cornerstone 2.安裝 3.按照下圖寫上相應的代碼 SVN Server寫上server :例如192.168.0.0 Reposiyory path 上寫上項目的地址 Name和Password寫上賬號密碼 4.

原创 IOS9之BitCode

關於bitcode的解釋http://www.cocoachina.com/ios/20150817/13078.html 來源 http://www.cocoachina.com/ios/20150702/12385.html 1.

原创 NSMutableAttributedString 屬性字符串的使用

    NSString *priceString = [NSString stringWithFormat:@"¥%.2f  ",model.curprice.doubleValue];     NSMutableAttribute