摘要: uitableviewcell *cell = ((uitableviewcell *)[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]); //区 和 行 自己传 阅读全文
posted @ 2016-05-30 17:23 tongyuling 阅读(129) 评论(0) 推荐(0) 编辑
摘要: //存 NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES); NSString *path=[paths objectAtIndex:0]; NSLog(@"path 阅读全文
posted @ 2016-05-27 13:11 tongyuling 阅读(112) 评论(0) 推荐(0) 编辑
摘要: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString * cellID = @"cellID"; JWBespe 阅读全文
posted @ 2016-05-27 11:16 tongyuling 阅读(177) 评论(0) 推荐(0) 编辑
摘要: http://bbs.51cto.com/thread-1099956-1.html 阅读全文
posted @ 2016-05-23 13:12 tongyuling 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #pragma mark 图片转字符串 -(NSString *)UIImageToBase64Str:(UIImage *)image { NSData *data = UIImageJPEGRepresentation(image, 1.0f); NSString *encodedImageSt 阅读全文
posted @ 2016-04-08 10:55 tongyuling 阅读(1630) 评论(0) 推荐(0) 编辑
摘要: 在更新约束时,要调用: // 告诉self.view约束需要更新 [self.view setNeedsUpdateConstraints]; // 调用此方法告诉self.view检测是否需要更新约束,若需要则更新,下面添加动画效果才起作用 [self.view updateConstraints 阅读全文
posted @ 2016-04-05 16:23 tongyuling 阅读(3027) 评论(0) 推荐(0) 编辑
摘要: https://github.com/newOcean/printer 阅读全文
posted @ 2016-03-31 16:36 tongyuling 阅读(375) 评论(0) 推荐(0) 编辑
摘要: self.tabBar.shadowImage = [UIImage new]; //UITabBar top line不显示 阅读全文
posted @ 2016-03-01 09:58 tongyuling 阅读(901) 评论(0) 推荐(0) 编辑
摘要: UIImageView * image=[[UIImageView alloc]init]; image.frame=CGRectMake(0, 0, 320, 568); image.image=[UIImage imageNamed:@"Guide_img_1"]; [self.view add 阅读全文
posted @ 2016-01-27 16:51 tongyuling 阅读(377) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Tim9Liu9/TimLiu-iOS 阅读全文
posted @ 2016-01-27 14:41 tongyuling 阅读(260) 评论(0) 推荐(0) 编辑