ios6

How to connect to iPhone's webkit debugger?

只愿长相守 提交于 2019-12-04 08:35:12
new iOS 6 feature is, that you can debug html and javascript running on device or simulator in desktop safari. I suppose, that this feature is based on Webkit Remote Debugging Protocol . How can I connect to webkit running on iPhone without desktop Safari? I can do this for mobile Chrome running on Android using websockets, but how can I do that for iOS devices? The ios-webkit-debug-proxy project (from Google!) does this. You want to look at this code https://github.com/leftlogic/remote-debug/tree/master/safari - although it fails when it actually comes to RPC calls that use __rpc

presentModalViewController in iOS6

泪湿孤枕 提交于 2019-12-04 08:32:45
问题 In my app's code I am still presenting viewcontrollers modally with presentModalViewController. This is deprecated in iOS 6. Does that mean this method has no effect on devices running iOS 6? If yes, how can I make my app present viewcontrollers modally on iOS 6? My Xcode version does not support iOS 6, so all new methods in iOS 6 are unavailable to me. 回答1: Deprecated means that you shouldn't use this method anymore. It still works, but it might be completely removed in one of the next

iOS 6 Maps occasional Crash

£可爱£侵袭症+ 提交于 2019-12-04 08:31:14
问题 I'm getting occasionally crash with iOS 6 MapKit. Can't really reproduce it. What can cause this? Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000044 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 IMGSGX543GLDriver 0x38f231b4 sgxTextureGetImageRowBytes(GLDTextureRec*, unsigned int, unsigned int) + 8 1 IMGSGX543GLDriver 0x38f23160 CalculateChunkPlaneSizes(GLDTextureRec*, int, unsigned int*, unsigned int*,

track usage of data sent and received through my app

点点圈 提交于 2019-12-04 08:27:19
How to track usage of data sent and received through my app? I just want to record bytes sent and received when my app is running. If I can get separate info for Wifi and Cellular network then it would be great but its not a priority. I know how to find total usage of device - https://stackoverflow.com/a/8014012/427969 Also, I know I can use Instruments to collect network activity data but I want to record this data in my app so need a programmatic way to do this. I tried to search this but all I find is device's network usage and not a particular app's usage. The following is the screenshot

How to send the user directly to the review page on The App Store?

*爱你&永不变心* 提交于 2019-12-04 07:52:01
问题 Up to now (with iOS < 6.0), I used the following URL and code to send the user directly to the review page of my app (to rate it with 5 stars and post a friendly comment :)): NSString *stringUrl = @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=XXXXXXXX&pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8"; NSURL *url = [NSURL URLWithString:stringUrl]; [[UIApplication sharedApplication] openURL:url]; This code doesn't work anymore when I run my app on a device

ContainerView with multiple embed segues

我们两清 提交于 2019-12-04 07:41:13
问题 Is there a way to have a single ContainerView with multiple embed segues? The aim is for a ContainerView to hold a few different ViewControllers depending on what buttons have been pressed; only one is going to be visible at a time. I want to use embed segues so that in Interface Builder the storyboards are automatically shown at the same size as the ContainerView. I realise that I can manually resize the other ViewControllers in InterfaceBuilder, but I want the automatic sizing provided by

iPhone 5 Keyboard sizing

丶灬走出姿态 提交于 2019-12-04 07:17:10
I've been testing my app in the 4-inch and 3.5-inch iPhone simulators, and when bringing up a keyboard with a UITextField in the 4-inch simulator in landscape mode, it's squished up to the side. It looks like a normal 3.5-inch keyboard: Am I missing something telling it to stretch properly? Please note - I don't have access to an actual iPhone 5 device to test on. Any help would be appreciated. Maybe your simulator is set to the 4-inch model but is running iOS5--this setup is possible in iOS Simulator but doesn't exist in the wild. 来源: https://stackoverflow.com/questions/12797419/iphone-5

Some UITextfields don't respond in iOs6

可紊 提交于 2019-12-04 07:09:35
Since updating to iOS 6 I have this weirdest bug when trying to make an UITextField or UITextView firstResponder. ...it doesn't work. I am not able to select the field or view and bring up the keyboard, nor is there a cursor or anything. The weirdest thing is that it is only not working for SOME fields, other ones in different viewcontrollers work without trouble. I have: [self.window makeKeyAndVisible]; self.window.rootViewController = self.viewController; in my appDelegate. It worked and still works without problems with iOS 5. Any ideas on what it could be? Thanks! I found out what was

how to select viewcontroller based on selection done

无人久伴 提交于 2019-12-04 06:56:11
问题 This question is related to this. I am using KLHorizontalSelect for showing tab bar with scroll option. I have dragged new 7 View Controller on storyboard. If I select Popular, popular view controller should get displayed. Any idea/ suggestions on how to get this done? 回答1: This is a typical example of view controller containment (where you want one view controller to present other view controllers). Navigation controllers and tab bar controllers are example of built in container controllers.

iOS Facebook native login (without Facebook SDK)

落爺英雄遲暮 提交于 2019-12-04 06:48:10
I am trying to use native (iOS 6-7x) libraries to authorize a user with Facebook from my app. I would like to pass the auth token to my server when login is successful. The code below works fine except when the user has not set up their Facebook account in the OS. I get the following error in this case: Error Domain=com.apple.accounts Code=6 "The operation couldn’t be completed. (com.apple.accounts error 6.) -(void) initFacebookLogin { LRAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate]; if (appDelegate.accountStore == nil) appDelegate.accountStore = [[ACAccountStore alloc