Time of Update: 2016-06-09
iOS筆記之NSSet,iosnsset 一、簡介NSSet到底什麼類型,其實它和NSArray功能性質一樣,用於儲存物件,屬於集合; NSSet ,
Time of Update: 2016-06-08
【代碼筆記】替換電話號碼中間4位為-號,電話號碼4位一,。二,代碼。RootViewController.m- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //電話號碼 UILabel *telLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 200, 20)]
Time of Update: 2016-06-07
iOS 學習完整項目,優秀的動畫例子收藏 3,ios例子Hi all:準時奉上一周的iOS精華內容了,事半功倍的效果是不是棒棒噠?還有還有,還有童鞋在愁金錢不夠如何下載想要的代碼嗎?快來看攻略吧~http://www.code4app.com/thread-7591-1-1.html<ignore_js_op> 【一周精品源碼】 [iOS精品源碼] 開源項目——『看知乎』iOS 版http://www.code4app.com/forum.
Time of Update: 2016-06-07
iOS 開發技術牛人部落格,ios開發牛人部落格 dark_gmn 的部落格 http://blog.csdn.net/dark_gmn?viewmode=contents Tel_小超 的部落格 http://blog.csdn.net/qq_26544491?viewmode=contentsyouxianming的部落格 http://www.cnblogs.com/YouXianMing/tag/唐巧&
Time of Update: 2016-06-05
@property? @property?說說他身後的事情。,@property說說@property 後面可以有哪些修飾符?1.安全執行緒的 aaomic、nonatomic2.存取權限的 readonly、readwrite3.記憶體管理(ARC) assign、strong、weak、copy4.記憶體管理(MRC) assign、
Time of Update: 2016-06-04
補充:tableView最佳化總結,tableview最佳化總結tableView最佳化方式總結(說明:一下只是我自己的小總結,會有不足,望大神指正,多謝大家了)1 緩衝 cell 的行高.目的方便第二遍訪問 cell.2 減少圖片的blend 操作.包括:設定不透明的視圖.UIView 的背景色不要使用 clearColor和控制項避免使用帶 alpha 的圖片3 cell 的重用4 當載入的資料比較小的時候,可以將載入的耗時操作用非同步作業.5 與渲染圖片.即先在 bitmap
Time of Update: 2016-05-31
【代碼筆記】書架頁面,筆記書架頁面一,。二,工程圖。三,代碼。RootViewController.h#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>{ NSMutableArray * dataArray; UITableView * myTableView;}@end
Time of Update: 2016-05-31
改變設定文字框佔位文字和圖片,文字框占文字圖片如果我們想實現這種效果,點擊相應的文本,佔位文字顯示高亮 ,而其他文字框非高亮 相應代碼#import <UIKit/UIKit.h>@interface XMGTextField : UITextField/** 顏色 */@property(nonatomic,strong)UIColor *placeholderColor;@end#import "XMGTextField.h"#import
Time of Update: 2016-05-30
iOS 從C移植項目到Objective-C,iosobjective-c一、建立項目 iOS | Framework & Library Cocoa Touch Static Library建立一個Library庫1. M.h標頭檔#ifndef M_h#define M_h#include <stdio.h>void testSleep(int t);void testPthread(int n);#endif /* M_h */2.
Time of Update: 2016-05-29
sizeToFit的用法和用途,sizetofit用法 最近有遇到過sizeToFit的方法,比較好奇,所以查了點資料 在官方文檔中 - (void)sizeToFit; // calls sizeThatFits: with current view bounds and changes bounds size.
Time of Update: 2016-05-30
transitionFromView方法的使用,transitionfromviewtransitionFromView方法的使用 效果 源碼//// ViewController.m// TransitionFromView//// Created by YouXianMing on 16/5/30.// Copyright © 2016年 YouXianMing. All rights reserved.//#import
Time of Update: 2016-05-27
網路請求相關小結2,請求相關小結1 NSURLConnettion NSURLConnettion是 Core Foundation/CFNetwork架構 API 之上的一個抽象. NSURLConnettion是用來指代 Foundation 架構中的一系列組件:
Time of Update: 2016-05-26
lable計算行高,lable行高 _introduce.text=status.introduce; //設定行間距 NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:_introduce.text];; NSMutableParagraphStyle *paragraphStyle =
Time of Update: 2016-05-26
在進入新版本 的時候,進行推送引導,新版本引導xx效果 具體代碼如下首先建立XMGPushGuideView類 XMGPushGuideView.h 檔案 #import <UIKit/UIKit.h>@interface XMGPushGuideView : UIView/** 載入xib */+(instancetype)guideView;/** 判斷當前的版本號碼,確定是載入推薦引導頁 */+(void)show;@end
Time of Update: 2016-05-24
【代碼筆記】設定textView或者label的行間距方法,textviewlabel一,。二,代碼。RootViewController.m- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //UILabel UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(50,
Time of Update: 2016-05-25
關於UIImage類的對象兩種初始化方法的區別,uiimage初始化1、imageNamed:1 UIImage *image = [UIImage
Time of Update: 2016-05-24
SQLite和CoreData資料庫的比較,sqlitecoredata1. SQLite資料庫sqlite資料庫操作的基本流程是, 建立資料庫, 再通過定義一些欄位來定義表格結構, 可以利用sql語句向表格中插入記錄, 刪除記錄, 修改記錄,
Time of Update: 2016-05-24
悅讀FM用戶端應用源碼,悅讀fm源碼 <ignore_js_op><ignore_js_op><ignore_js_op> 正如悅讀FM所表達的【當好的文字遇上好的聲音】,悅讀FM提供了一個很好的文章線上收聽平台,在這裡您可以重拾寧靜、思考人生、感悟人生.我,作為悅讀FM的小粉絲,一直苦於悅讀FM沒有手機用戶端,而作為一位手機APP開發人員,覺得非常有必要出一款APP,於是該APP就誕生了.聯絡我源碼下載:http://code.662p.
Time of Update: 2016-05-24
【代碼筆記】伸縮式動畫,代碼筆記伸縮一,。二,代碼。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"伸縮式動畫";}//點擊任何處,彈齣動畫-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UIView
Time of Update: 2016-05-24
ios開發:代理設計模式,ios開發設計模式 代理是一種簡單而功能強大的設計模式,這種模式用於一個對象“代表”另外一個對象去做和實現一些東西。