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
pickerView.showsSelectionIndicator
- - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row
- forComponent:(NSInteger)component reusingView:(UIView *)view
- {
- UILabel *mycom1 = view ? (UILabel *) view : [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 270.0f, 20.0f)];
- NSString *imgstr1 = [pickerData objectAtIndex:row];
- mycom1.text = imgstr1;
- [mycom1 setFont:[UIFont systemFontOfSize: 13]];
- mycom1.backgroundColor = [UIColor clearColor];
- CFShow(mycom1);
- [imgstr1 release];
- return mycom1;
- }
08-27,时间好快
关于cocoapods的好东东,很简洁实用~~~
http://www.cocoachina.com/ios/20140107/7663.html
http://my.oschina.net/DragonWang/blog/110148