ios6

How does removing armv7s xCode 4.6 valid architecture project property affect App Store distribution of my iOS apps?

≡放荡痞女 提交于 2019-12-10 16:08:54
问题 I have a project that I created before iPhone 5 was released and I'm working on this project in xCode 4.6. By default xCode changes the build architecture of new projects to include the latest iPhone 5 instruction set. One of the issues I faced is that a static library that I'm using for the project is not compiled for armv7s (new iPhone 5 and possibly new iPad). The workaround is to change the valid architectures property during my debugging of the project to exclude armv7s: I'm interested

UITextView undo manager do not work with replacement attributed string (iOS 6)

浪子不回头ぞ 提交于 2019-12-10 15:49:14
问题 iOS 6 has been updated to use UITextView for rich text editing (a UITextView now earns an attributedText property —which is stupidly non mutable—). Here is a question asked on iOS 6 Apple forum under NDA, that can be made public since iOS 6 is now public... In a UITextView, I can undo any font change but cannot undo a replacement in a copy of the view's attributed string. When using this code... - (void) replace: (NSAttributedString*) old with: (NSAttributedString*) new { 1. [[myView

Google map's turn by turn gps navigation for ios development

别等时光非礼了梦想. 提交于 2019-12-10 15:40:12
问题 My app required to include turn by turn gps navigation. Can anybody tell how to integrate google map for turn by turn gps navigation. I can found it in android development. But i can't found navigation from google map's iOS development documentation. https://developers.google.com/maps/documentation/ios/intro Please anybody help to resolve my problem. 回答1: The google map ios Sdk does not have any turn-by-turn navigation api or navigation api's,yet. Please refer link https://developers.google

How to redraw the UIBezierpath based textview text contentsize in iphone

亡梦爱人 提交于 2019-12-10 15:40:05
问题 I draw the message bubble using UIBezierpath in uiview. I render the textview inside the bezier path. My problem is when I enter the text in textview I want to message bubble size dynamically increase but I cannot do that. how can resolve the issue. 回答1: You can resize the UIBezierpath relative to your UITextview frame size like this: CGRect box = CGPathGetBoundingBox(bezierpath.CGPath) CGFloat scaleX = textView.frame.size.width / box.frame.size.width; CGFloat scaleY = textView.frame.size

NSLocalization on xCode 4.5 and iOS 6

旧巷老猫 提交于 2019-12-10 15:35:57
问题 Is there any way to use Localizable.strings with NSLocalizedString(@"KEY", @"") in xCode 4.5 for iOS6 like in older iOS5? Here is my sample code: In Localizable.strings "KEY" = "Hello World!"; In .m script NSString *tempString = NSLocalizedString(@"KEY", NULL); NSLog(@"My String is: %@", tempString); The log for iOS5.1 is: "My String is: Hello World!" The log for iOS6 is: "My String is: KEY" ...I'm really going to become crazy! Where is my error? Thanks a lot!!! 回答1: Their is no need to

preferredInterfaceOrientationForPresentation must return a supported interface orientation (iOS 6)

北慕城南 提交于 2019-12-10 15:33:59
问题 My application window's root view controller is a subclassed UINavigationController. I have added this code to the class: - (BOOL)shouldAutorotate { return [self.topViewController shouldAutorotate]; } - (NSUInteger)supportedInterfaceOrientations { return [self.topViewController supportedInterfaceOrientations]; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return [self.topViewController preferredInterfaceOrientationForPresentation]; } In my root UIViewController I

Webcore NSBeep() in console when debugging an iOS App?

蹲街弑〆低调 提交于 2019-12-10 15:26:02
问题 While I'm running my iOS 6 app on the iPhone I get this weird message in the console. Webcore NSBeep() I read in other posts that this NSBeep doensn't even exist in iOS. Beside I'm not using anything related to the web at all in my app. So what does that mean? Is that an error I should be worried about? 来源: https://stackoverflow.com/questions/12992581/webcore-nsbeep-in-console-when-debugging-an-ios-app

Clear iOS 6 <input type=file> image thumbnail

烈酒焚心 提交于 2019-12-10 15:22:26
问题 Since iOS 6 it is possible to use the <input type='file'> to access the photo library. I use this to upload images to a wall, through an UIWebView. Works fine. The input element is kinda nicely implemented by Apple, with a small auto-generated thumbnail between the button and the filename field. My only problem around this is that I cannot seem to reset this thumbnail. If it set the .value of the input to null, the filename clears out ("no file selected", as stated initially) but the

ios6 LLVM 4.0 obj-c 语法的一些变化

∥☆過路亽.° 提交于 2019-12-10 15:20:33
ios 6 采用了新的编译器LLVM 4.0, 其中带来了一些objc语法方便的小改变。 在生成string 时, 我们在objc 常使用NSString *s = @"string"; 使得创建string十分方便。在ios 6我们可以使用类似的语法来声明NSNumber, NSArray, NSDictionary,从而使代码更简洁。 NSNumber 之前声明NSNuumber: NSNumber *n = [NSNumber numberWithInt:3]; NSNumber *yesValue = [NSNumber numberWithBOOL:YES]; LLVM 4.0 写法: NSNumber *n = @3; NSNumber *yesValue = @YES ; NSNumber *pi = @3.14F //默认为double,加F后为float NSNumber *r = @3U //默认为有符号整型,加U后为无符号整型 NSArray和NSDictionary 创建NSArray: NSString *str1 = @"1"; NSString *str2 = @"2"; NSString *str3 = @"3"; NSArray *myArray1 = [NSArray arrayWithObjects:str1,str2,str3,nil];

UITextView - setting font size of attributedText slow?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 15:19:13
问题 I'm trying to change the font size of my UITextView's text, which is using attributed text, with the following: UIFont *font = [self.textView.font fontWithSize:value]; NSDictionary *attributes = @{ NSFontAttributeName: font }; NSMutableAttributedString *attrString = [self.textView.attributedText mutableCopy]; [attrString addAttributes:attributes range:NSMakeRange(0, attrString.length)]; self.textView.attributedText = attrString; However, using this in combination with a slider causes a