ios6

CSS styled scrollbars support for safari mobile on iOS 6 disappeared?

前提是你 提交于 2019-12-18 05:56:18
问题 I'm having a problem, probably because of Apple and I can't find information about it. Yesterday I skinned a website's scrollbars with webkit css properties (-webkit-scrollbar, -webkit-scrollbar-track, -webkit-scrollbar-thumb) so it displays nicely on iPads. Everything was fine looking and scrolling with native behaviour. Suddenly this morning, after updating my iPad to iOS6, my custom scrollbars disappeared. This is a big bummer for me and of course there is no information about this on

UICollectionView doesn't contain UICollectionViewCell in IB

跟風遠走 提交于 2019-12-18 05:28:09
问题 I'm trying to add a UICollectionView to a .nib file in IB. I've worked through a few tutorials and had no problems. In my existing app, when I drag a collection view into a view in IB and then expand the object, the CollectionView Flow Layout is there , but there is no collection view cell. I also cannot drag and drop a cell into the collection view. Also the collection view is displayed differently, showing an image of a grid of cells instead of the normal white box. I've tried creating a

iOS 6 - Bluetooth LE disconnect

你。 提交于 2019-12-18 04:52:45
问题 Ok what the heck is up with iOS6 and how it handles Bluetooth LE disconnections? Before the device would disconnect immediately but now, for some strange reason, the device waits to disconnect for about 30-60 seconds. I need it to disconnect ASAFP! I've been searing all over the internet trying to figure out how to initiate an immediate disconnection from the peripheral and I found this nifty email that explains a workaround is to unsubscribe from notifications on the service characteristics.

Attach object using iOS6 UIActivityViewController

夙愿已清 提交于 2019-12-18 04:11:11
问题 I'm migrating to use the UIActivityViewController for sharing in iOS6, but I can't figure out how to create email attachment objects to be included when sharing by email. The corresponding code in iOS5 is: MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; [picker addAttachmentData:data mimeType:@"application/XXX" fileName:fileName]; 回答1: You have very limited control over UIActivityViewController, but if you're attaching well-know mime types, I found you can

NSInvalidArgumentException thrown from ACAccountStore when calling [FBSession openActiveSessionWithPermissions…] on iOS 6.0 and iOS 6.0.1

孤人 提交于 2019-12-18 04:02:51
问题 With Facebook iOS SDK 3.1.1, I'm performing login using this call - NSArray *permissions = [[NSArray alloc] initWithObjects: @"email", @"user_birthday", @"user_location", nil]; @try { return [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { [self sessionStateChanged:session state:state error:error]; }]; } @catch { ... } There are rare cases when this method throws

UIPickerView can't autoselect last row when compiled under Xcode 4.5.2 & iOS 6

不羁的心 提交于 2019-12-18 03:53:43
问题 I have been beating my head against the wall trying to diagnose my app's inability to automatically preselect the last row of a UIPickerView using code that successfully worked under older versions of XCode. I think this is a bug in Xcode rather than iOS 6 because my old app running on an iOS 6 device works properly, but recompiling the code under Xcode 4.5.2 does not behave properly. I have put together the following sample to demonstrate the problem, but before I submit a bug report, I

presentViewController shows black page

耗尽温柔 提交于 2019-12-18 03:11:22
问题 - (IBAction)submitButtonClicked:(id)sender{ NSLog(@"here"); SuccessOrFailViewController *sfvc = [[SuccessOrFailViewController alloc] init]; [self presentViewController:sfvc animated:NO completion:NULL]; } I am trying to open a new page when a user clicks the submit button in the app. However, this opens completely black screen with nothing on it. How do I make it open the viewController instead ? 回答1: You are not entering the nib name for the user Interface: SuccessOrFailViewController *sfvc

presentViewController shows black page

一曲冷凌霜 提交于 2019-12-18 03:11:16
问题 - (IBAction)submitButtonClicked:(id)sender{ NSLog(@"here"); SuccessOrFailViewController *sfvc = [[SuccessOrFailViewController alloc] init]; [self presentViewController:sfvc animated:NO completion:NULL]; } I am trying to open a new page when a user clicks the submit button in the app. However, this opens completely black screen with nothing on it. How do I make it open the viewController instead ? 回答1: You are not entering the nib name for the user Interface: SuccessOrFailViewController *sfvc

Set navigation bar image in iOS 7

半城伤御伤魂 提交于 2019-12-17 23:38:49
问题 I want to convert my current project from iOS 6 to iOS 7. In iOS 6 my project is working fine, but in iOS 7 navigation bar image is not showing properly. I used this code snippet for iOS 6, UIImage *imgNav = [UIImage imageNamed:@"navigation.png"]; self.navigationController.navigationBar.frame = CGRectMake(0, 0, 320, 44); [self.navigationController.navigationBar setBackgroundImage:imgNav forBarMetrics: UIBarMetricsDefault]; How can I set the navigation bar image in iOS 7? 回答1: Try Adding the

How to track user location in background?

孤街浪徒 提交于 2019-12-17 23:29:34
问题 I'm looking for an open source app or library to track user location in the background. Now I'm trying to do it with CLLocation and background tasks, but accuracy is not enough for my case. Could you explain, how apps, like "moves", "runkeeper", "endmondo", creates my route? Should I use Accelerometer or/and compass to create a route between CLLocation background points? Some code: //location manager init self.locationManager = [[CLLocationManager alloc] init]; self.locationManager