oschina ios开发学习

应该跟android版的类似,例如服务器端在oschina-prefix。pch里

#define api_news_list @"http://www.oschina.net/action/api/news_list"

#define api_news_detail @"http://www.oschina.net/action/api/news_detail"

 

 Xcode4.6创建和使用iOS的dylib动态库

http://www.cocoachina.com/ask/questions/show/93365

框架搭建之一------引入ASIHttp框架

 

 

ios模拟器没有HOME键 
1,缩小比例快捷键是command+1/2/3,你可以试试,这样是不会有home的
2,Hardware > Home menu item, 或者 Cmd-Shift-H.

 双击HOME键就是 Cmd-Shift-H 按两次

 

 

iOS中XML解析 (一) TBXML (实例:打印xml内容及存储到数组)

 

 

Unknown type name ....

如果是报这个错误,多半是你的对象类型没有被识别,检查是不是没有引用对应的库或者头文件在你的文件头部分,还有可能是循环引用导致的,循环引用的解决方法就是

Class A 中用import Class B

Class B的.h头文件里用@class A;

.m文件里再用import   http://www.2cto.com/kf/201205/133493.html

 

 

AudioServicesCreateSystemSoundID", referenced from:

这些问题都是没引入包可以点击项目名——》TARGETS下的项目名——》Build Phases——》Link Binary whith Libararies ——》按+,添加AudioToolbox等

_OBJC_CLASS_$_SearchResult", referenced from:

彻底解决_OBJC_CLASS_$_某文件名", referenced from:问题

 

 

Xcode菜单功能中文翻译

 

 

取IOS APP中的资源图片/还原IOS App中的PNG文件

 

 

 

 

定制iOS 7中的导航栏和状态栏

 

解决IOS7中导航栏内容挡住页面内容,在ios7下导航默认透明,而内容从0。0开始当导航设置背景时就会挡住了,

在UIVIewController中加入:
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
            self.edgesForExtendedLayout = UIRectEdgeNone;
            
            self.extendedLayoutIncludesOpaqueBars = NO;
            self.modalPresentationCapturesStatusBarAppearance = NO;
        }

 

http://blog.sina.com.cn/s/blog_7b9d64af01019zsi.html几种UINavigationBar

 

 

往页面添加一个view

//    self.egoImgView = [[EGOImageView alloc] initWithFrame:CGRectMake(18, 16, 50, 50)];

//    self.egoImgView.image = [UIImage imageNamed:@"big_avatar_loading.png"];

//    [self.view addSubview:self.egoImgView];

//下属控件初始化

    self.activesView = [[ActivesViewalloc] init];

    self.activesView.catalog = 1;

    self.msgView = [[MessageViewalloc] init];

    self.msgView.view.hidden = YES;

    [selfaddChildViewController:self.activesView];

    [selfaddChildViewController:self.msgView];

    [self.view addSubview:self.activesView.view];

    [self.view addSubview:self.msgView.view];

 

.


UIButton设置背景字体大小等

UIButton *btnCustom = [UIButtonbuttonWithType:UIButtonTypeRoundedRect];

    [btnCustom setFrame:CGRectMake(0, 0, 40, 23)];

    [btnCustom addTarget:selfaction:@selector(clickSearch:) forControlEvents:UIControlEventTouchUpInside];

    [btnCustom setTitle:@"登陆"forState:UIControlStateNormal];

    [btnCustom setTitleColor:[UIColorblackColor] forState:UIControlStateNormal];

    btnCustom.titleLabel.font=[UIFont systemFontOfSize:12.0];

    [btnCustom setBackgroundImage:[UIImageimageNamed:@"btn_login"] forState:UIControlStateNormal];

 

 

webView http://blog.csdn.net/totogo2010/article/details/7686164

 

 

 

iphone开发错误总结-警告篇

 

 

 AFHTTPClient GET和POST方法

pragma mark -

- (void)getPath:(NSString *)path 
     parameters:(NSDictionary *)parameters 
        success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
        failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{
    NSURLRequest *request = [self requestWithMethod:@"GET" path:path parameters:parameters];
    AFHTTPRequestOperation *operation = [self HTTPRequestOperationWithRequest:request success:success failure:failure];
    [self enqueueHTTPRequestOperation:operation];
}

- (void)postPath:(NSString *)path 
      parameters:(NSDictionary *)parameters 
         success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success
         failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure
{

 

 

 

 

ios:改变tableview的titleForHeaderInSection字体颜色设置

posted @ 2013-11-18 13:10  子午  阅读(821)  评论(0编辑  收藏  举报