摘要: //方法1---- (void)textFieldDidBeginEditing:(UITextField *)textField { if (iPhone5) { return; } else { [UIView beginAnimations:nil context:NUL... 阅读全文
posted @ 2014-08-01 11:34 给me一首歌的时间 阅读(165) 评论(0) 推荐(0) 编辑
摘要: //收回键盘1-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.view.subviews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL... 阅读全文
posted @ 2014-08-01 11:31 给me一首歌的时间 阅读(593) 评论(0) 推荐(0) 编辑
摘要: for (UIImage *myImg in _imgArray) { NSData *imageData = UIImageJPEGRepresentation(myImg,0.5); NSString *_encodedImageStr = [imageData base64En... 阅读全文
posted @ 2014-08-01 11:22 给me一首歌的时间 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1.Build Settings-->搜索other linker Flags-->将other linker Flags设置为-objc2.用2.1.1的版本的百度地图3.换高德地图 阅读全文
posted @ 2014-08-01 11:21 给me一首歌的时间 阅读(132) 评论(0) 推荐(0) 编辑
摘要: CGSize constraintSize; constraintSize.width = 320; constraintSize.height = MAXFLOAT; CGSize sizeFrame =[infoTextView.text sizeWithFont:infoTextView... 阅读全文
posted @ 2014-08-01 11:13 给me一首歌的时间 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 苹果中国开发者支持中心电话:4006 701 855 阅读全文
posted @ 2014-08-01 11:08 给me一首歌的时间 阅读(306) 评论(0) 推荐(0) 编辑
摘要: //控制输入框的字数- (void)textViewDidChange:(UITextView *)textView{ NSInteger number = [textView.text length]; if (number > 300) { textView.text = [textV... 阅读全文
posted @ 2014-08-01 11:07 给me一首歌的时间 阅读(145) 评论(0) 推荐(0) 编辑
摘要: self.tfaaa.layer.borderWidth = 2;self.tfaaa.layer.borderColor = [UIColor blueColor].CGColor; 阅读全文
posted @ 2014-08-01 11:04 给me一首歌的时间 阅读(209) 评论(0) 推荐(0) 编辑
摘要: - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskP... 阅读全文
posted @ 2014-08-01 11:01 给me一首歌的时间 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #define WDWBaseURL @"http://192.168.1.1/" //字符串#define TOWERTabBarItemTitleOffset UIOffsetMake (0, -3) //点#define WDWFontColor3d3d3d [UIColor colorWit... 阅读全文
posted @ 2014-08-01 10:59 给me一首歌的时间 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1.上传图片以二进制流的形式上传1 #pragma mark - 文件上传2 - (IBAction)uploadImage3 {4 /*5 此段代码如果需要修改,可以调整的位置6 7 1. 把upload.php改成网站开发人员告知的地址8 2. 把file改成网站开发人员告知... 阅读全文
posted @ 2014-08-01 10:54 给me一首歌的时间 阅读(7794) 评论(0) 推荐(0) 编辑
摘要: //设置一个viewview = [[UIView alloc] initWithFrame:CGRectMake(0, 38, 320, 30)];view.backgroundColor = [UIColor lightGrayColor];[self.view addSubview:view]... 阅读全文
posted @ 2014-08-01 10:33 给me一首歌的时间 阅读(341) 评论(0) 推荐(0) 编辑
摘要: App Store 命名规则:https://itunes.apple.com/cn/app/ + 拼音(最多6个,全部小写,空格要-) + /id +appID一些参考实例:http://itunes.apple.com/cn/app/wo-ding/id870417673https://itun... 阅读全文
posted @ 2014-08-01 10:27 给me一首歌的时间 阅读(307) 评论(0) 推荐(0) 编辑
摘要: [self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex:1]animated:YES];或 searchBarViewController *sear... 阅读全文
posted @ 2014-08-01 10:22 给me一首歌的时间 阅读(340) 评论(0) 推荐(0) 编辑