摘要: 一、大小写转换1、- (NSString *)uppercaseString; 所有字符转化为大写2、- (NSString *)lowercaseString; 所有字符转化为小写3、- (NSString *)capitalizedString; 所有单词首字母转化大写NSLog(@"%@", ... 阅读全文
posted @ 2014-08-20 22:17 sunxiang1991 阅读(205) 评论(0) 推荐(0)
摘要: #import "ViewController.h"@interface ViewController (){ UIView *view; UIView *view0; int i;}@end@implementation ViewController - (... 阅读全文
posted @ 2014-08-20 20:30 sunxiang1991 阅读(110) 评论(0) 推荐(0)
摘要: NSString的使用。1、 - (NSUInteger)length; 返回字符串的长度NSString *demo = @"hello world";NSString *demo two=@"good morning";NSLog(@"%ld", [demo length]);输出为 112- ... 阅读全文
posted @ 2014-08-16 17:28 sunxiang1991 阅读(373) 评论(0) 推荐(0)
摘要: #import "ViewController.h"#import @interface ViewController (){ AVAudioPlayer *play; int index; NSArray *audiolist; NSMutableArray *imagel... 阅读全文
posted @ 2014-07-21 08:06 sunxiang1991 阅读(148) 评论(0) 推荐(0)
摘要: 排序前 必须先定义一个比较的方法 如下-(NSComparisonResult )studentcompare:(Student *)stu;在Sstudent的类中定义for ....in的用法 取出in后面数组中的各个元素将数组中的元素排序NSArray *array3=[array2 sort... 阅读全文
posted @ 2014-07-17 21:17 sunxiang1991 阅读(116) 评论(0) 推荐(0)
摘要: AppDelegate.m部分- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWin... 阅读全文
posted @ 2014-07-17 08:28 sunxiang1991 阅读(130) 评论(0) 推荐(0)
摘要: file:///Applications/Xcode6-Beta2.app/Contents/Developer/Applications/iOS%20Simulator.app/ 阅读全文
posted @ 2014-07-17 08:12 sunxiang1991 阅读(116) 评论(0) 推荐(0)
摘要: #import "ViewController.h"#import "cal.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *calrusult; @end float i=10.0;@i... 阅读全文
posted @ 2014-07-12 14:57 sunxiang1991 阅读(163) 评论(0) 推荐(0)
摘要: import“ViewController.h"@interface ViewController()@end@implementation ViewController-(void)viewDidload{[super viewDidload];UIView *redview=[[UIView a... 阅读全文
posted @ 2014-07-10 08:41 sunxiang1991 阅读(98) 评论(0) 推荐(0)