- (NSInteger)countOfSubstring:(NSString *)substring inString:(NSString *)s{ NSArray *ary=[s componentsSeparatedByString:substring]; NSString *str=[ary...
分类:
其他好文 时间:
2015-06-19 10:19:27
阅读次数:
81
#import@interfaceSemicircleView:UIView/***传入数值(改变圆角位置)**@paramindex0:下,1:上,2,上下,3无*/-(void)upOrdownsemicirc:(NSInteger)index;@end #import"semicircleVi...
分类:
其他好文 时间:
2015-06-18 15:06:46
阅读次数:
89
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight这是 UIImage 的一个实例方法,它的功能是创建一个内容可拉伸,而边角不拉伸的图片,...
分类:
其他好文 时间:
2015-06-14 16:22:23
阅读次数:
102
-(void)resetRoomBtn{ [[_mctView viewWithTag:2000]removeFromSuperview]; CGFloat kWidth = (screenW-20)/4; NSInteger arrayCount = _roomImgArray.count;...
分类:
其他好文 时间:
2015-06-13 20:00:28
阅读次数:
102
1:IOS开发基础知识--碎片1a:NSString与NSInteger的互换b:Objective-c中集合里面不能存放基础类型,比如int string float等,只能把它们转化成对象才可以存放,就是类NSNumberc:NSDATA与NSString互转d:去除输入框空格(NSString...
分类:
移动开发 时间:
2015-06-12 14:52:04
阅读次数:
171
在iOS开发中经常使用NSInteger和NSUInteger,而在其他的类似于C++的语言中,我们经常使用的是int、unsigned int。我们知道iOS也可以使用g++编译器,那么它们之间是否有什么联系呢?从NSUInteger和NSInteger的定义文件中NSObjCRuntime.h发...
分类:
移动开发 时间:
2015-06-11 22:26:07
阅读次数:
141
zSpecifies that a following [...] conversion specifier applies to asize_tor the corresponding signed integer type argument;size_tis used to represent ...
分类:
其他好文 时间:
2015-06-11 12:48:40
阅读次数:
162
//1.设定滚定条的样式
typedef
NS_ENUM(NSInteger, UIScrollViewIndicatorStyle) {
UIScrollViewIndicatorStyleDefault, // black with white border. good against any background
黑白边框
UIScrollViewI...
//创建万花筒视图 for(NSInteger i = 0; i = 0; i--) {//使用tag值寻找到相应的视图[self.window viewWithTag:214 -i].backgroundColor = [self.window viewWithTag:215 - i].backg...
分类:
其他好文 时间:
2015-06-10 13:59:56
阅读次数:
121
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIPageControl : UIControl { @private NSMutableArray* _indicators; NSInteger _currentPage; NSInteger _d...
分类:
其他好文 时间:
2015-06-10 13:47:30
阅读次数:
112