• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
威猛的小老虎
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2
2012年10月19日
NSScanner
摘要: NSString *tmp;NSArray *lines; /*将文件转化为一行一行的*/lines = [[NSString stringWithContentsOfFile:@"testFileReadLines.txt"] componentsSeparatedByString:@”\n”]; NSEnumerator *nse = [lines objectEnumerator]; // 读取<>里的内容 while(tmp = [nse nextObject]) { NSString *stringBetweenBrackets... 阅读全文
posted @ 2012-10-19 18:05 威猛的小老虎 阅读(154) 评论(0) 推荐(0)
2012年10月16日
UILable和UITextField
摘要: 一、UILabel(1)初始化UILabel<span style="color:#000000;">UILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ];scoreLabel.textAlignment = UITextAlignmentCenter;scoreLabel.text = @"我是Tiger-小老虎";scoreLabel.textColor = [U 阅读全文
posted @ 2012-10-16 15:58 威猛的小老虎 阅读(235) 评论(0) 推荐(0)
UITextView控件
摘要: 1.创建并初始化创建UITextView的文件,并在.h文件中写入如下代码:#import <UIKit/UIKit.h>@interface TextViewController : UIViewController <UITextViewDelegate>{ UITextView *textView;}@property (nonatomic, retain) UITextView *textView;@end在.m文件中初始化这个textview,写入代码如下:self.textView = [[[UITextView alloc] initWithFrame:s 阅读全文
posted @ 2012-10-16 15:53 威猛的小老虎 阅读(1239) 评论(0) 推荐(0)
上一页 1 2
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3