- 浏览: 26740 次
- 性别:
- 来自: 扬州
最新评论
-
caoyudong:
newjyang 写道newjyang 写道哈哈哈呵呵呵呵笑个 ...
iOS 多线程开发以及网络图片加载 -
newjyang:
newjyang 写道哈哈哈呵呵呵呵笑个毛!
iOS 多线程开发以及网络图片加载 -
newjyang:
哈哈哈呵呵呵呵
iOS 多线程开发以及网络图片加载 -
newjyang:
aaaaa
iOS 多线程开发以及网络图片加载 -
newjyang:
test
iOS 多线程开发以及网络图片加载
文章列表
NSDate *datepl = [NSDatedateWithTimeIntervalSince1970:strDara.intValue];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateStyle:NSDateFormatterMediumStyle];
[formatter setTimeStyle:NSDateFormatterShortStyle];
[formatte ...
NSURLRequest *request = [mWebView request];
NSURL *url = [request URL];
NSString *strUrl = [url absoluteString];
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"标题" message:@"这个是UIAlertController的默认样式" preferredStyle:UIAlertControllerStyleAlert];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField){
textField.plac ...
//
// ViewController.m
// BookStore
//
// Created by cyd on 14-11-21.
// Copyright (c) 2014年 cyd. All rights reserved.
//
#import "IndexViewController.h"
#import "UIViewController+MMDrawerController.h"
@interface IndexViewController ()
@end
@implementation IndexViewControll ...
NSArray *values=[dictionaryListData allValues];
NSArray *keys=[dictionaryListData allKeys];
url:http://mobile.9sssd.com/ios/art/967
#import <UIKit/UIKit.h>
2 @interface HomeViewController : UIViewController
3 <UITableViewDelegate, UITableViewDataSource>{
4 }
5 @property (nonatomic, retain) NSDictionary *contactTitles;//存储所有的联系人信息
6 @property (nonatomic, retain) NSArray *groups; ...
第一次进来的时候:
1⃣️ m_imageViewGraphs = [[UIImageView alloc]initWithImage:[self minuteLinesView]];
[self.view addSubview:m_imageViewGraphs];
2⃣️ m_axisUnit=[[AxisUnitPriceView alloc]initWithFrame:CGRectMake(2, 390, 20, 250) :m_difference :m_beginPrice];
3⃣️m_showBar=[[ShowBar ...
NSNumber *max=[m_listData valueForKeyPath:@"@max.doubleValue"];
NSNumber *min=[m_listData valueForKeyPath:@"@min.doubleValue"];
UIView:
-(id)initWithFrame:(CGRect)frameid)targetSEL)sel
{
self=[super initWithFrame:frame];
if (self)
{
scrow.delegate=target;
m_showBar=[[ShowBar alloc]initWithFrame:CGRectMake(15, 28, 70, 2)];
[self addSubview:m_showBar];
}
return self;
}
-(void)setSho ...
UIView:
-(void)creatButton:(id)targetSEL)sel
{
for (int i=0; i<3; i++)
{
btn=[[UIButton alloc]initWithFrame:CGRectMake(i*130, 0, 100, 30)];
btn.tag=i;
switch (i)
{
case 0:
[btn setTitle:@"AAA" forState:UIContro ...
//UIView:
-(id)initWithFrame:(CGRect)frameid)targetSEL)sel
{
self=[super initWithFrame:frame];
if (self)
{
controller=target; //传一个id类型的controller
[self creatScrow];
f_tableA=[self creatTableA]; //f_ 表示设置为全局变量
f_tableB=[self creatTableB];
}
return s ...
-(NSMutableArray *)containCharacterNSMutableArray *)arrayDynamic
{
for (int i=0; i<arrayDynamic.count; i++)
{
if ([arrayDynamic[i] rangeOfString:@"hk"].length>0)
[arrayDynamic removeObjectAtIndex:i];
if ([arrayDynamic[i] rangeOfString:@&quo ...
- (NSString *)replaceUnicode:(NSString *)unicodeStr
{
NSString *tempStr1 = [unicodeStr stringByReplacingOccurrencesOfString:@"\\u"withString:@"\\U"];
NSString *tempStr2 = [tempStr1 stringByReplacingOccurrencesOfString:@"\""withString:@"\\\""]; ...
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://api.douban.com/v2/book/search?tag=computer"]];
//将请求的url数据放到NSData对象中
NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
//IOS5自带解析类NSJSONSeriali ...
网址:http://code4app.com/article/cocoapods-install-usage
pod install --verbose --no-repo-update
ruby环境:https://ruby-china.org/wiki/install_ruby_guide