你好,八月。。。。。

8-7

要求一个提示框,出现2秒后自动消失

- (void)timerFireMethod:(NSTimer*)theTimer//弹出框

{

    UIAlertView *promptAlert = (UIAlertView*)[theTimeruserInfo];

    [promptAlert dismissWithClickedButtonIndex:0animated:NO];

    promptAlert =NULL;

}



- (void)showAlert:(NSString *) _message{//时间

    UIAlertView *promptAlert = [[UIAlertViewalloc]initWithTitle:nilmessage:_messagedelegate:nilcancelButtonTitle:nilotherButtonTitles:nil];

    

    [NSTimerscheduledTimerWithTimeInterval:1.5f

                                     target:self

                                   selector:@selector(timerFireMethod:)

                                   userInfo:promptAlert

                                    repeats:YES];

    [promptAlert show];

}


08-12

iOS this class is not key value coding-compliant for the key name.

写模型的时候,遇到了这个崩溃问题,原来模型和字典里的key 值字段必须一一对应。。。


08-18

访问手机通讯录获取好友列表

http://my.oschina.net/joanfen/blog/140146


08-22

pickerview

pickerView.autoresizingMask UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; //这里设置了就可以自定                                                                                                                           义高度了,一般默认是无法修改其216像素的高度

pickerView.showsSelectionIndicator YES;    //这个最好写 你不写来试下哇

  1. - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row  
  2.           forComponent:(NSInteger)component reusingView:(UIView *)view  
  3. {  
  4.     UILabel *mycom1 = view ? (UILabel *) view : [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 270.0f, 20.0f)];  
  5.       
  6.     NSString *imgstr1 = [pickerData objectAtIndex:row];  
  7.     mycom1.text = imgstr1;      
  8.     [mycom1 setFont:[UIFont systemFontOfSize: 13]];  
  9.     mycom1.backgroundColor = [UIColor clearColor];  
  10.     CFShow(mycom1);  
  11.     [imgstr1 release];          
  12.       
  13.     return mycom1;      
  14. }  

08-27,时间好快

关于cocoapods的好东东,很简洁实用~~~

http://www.cocoachina.com/ios/20140107/7663.html

http://my.oschina.net/DragonWang/blog/110148


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值