ios6

tableview internal inconsistency when deleting

感情迁移 提交于 2020-01-17 03:54:31
问题 I have an array (datasource) with a set of addresses, my tableview is set to have double the amount of cells from the datasource so I can style the odd cells to be small and clear (to make the tableview look like the cells are separated by a small space). My problem comes when deleting a row, I do the following: -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView beginUpdates]; if

UIAlertview message not Showing properly

流过昼夜 提交于 2020-01-17 03:18:06
问题 I'm having a UIAlertView and declared as UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"NEW_ALBUM" message:@"ENTER_ALBUM_NAME" delegate:self cancelButtonTitle:@"CANCEL" otherButtonTitles:@"Ok",nil]; alert.tag = 999; alert.alertViewStyle = UIAlertViewStylePlainTextInput; [alert show]; [alert release]; the resultant alert was shown as 来源: https://stackoverflow.com/questions/19288340/uialertview-message-not-showing-properly

Getting user profile picture in iOS6?

心不动则不痛 提交于 2020-01-16 08:35:28
问题 I tried this: meurl = [NSURL URLWithString:@"https://graph.facebook.com/me/picture"]; SLRequest *imageReq =[SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:meurl parameters:nil]; imageReq.account = self.facebookAccount; [imageReq performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { if (error) { NSLog(@"error -%@", [error debugDescription]); }else{ NSString *meDataString = [[NSString alloc] initWithData

Getting user profile picture in iOS6?

Deadly 提交于 2020-01-16 08:34:21
问题 I tried this: meurl = [NSURL URLWithString:@"https://graph.facebook.com/me/picture"]; SLRequest *imageReq =[SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET URL:meurl parameters:nil]; imageReq.account = self.facebookAccount; [imageReq performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { if (error) { NSLog(@"error -%@", [error debugDescription]); }else{ NSString *meDataString = [[NSString alloc] initWithData

PresentViewController a non full screen UIViewController with UINavigationController in it

社会主义新天地 提交于 2020-01-16 00:49:09
问题 I am trying to figure out if there is a way to present a UIViewController which is not full screen. It should be of custom size & not what can be achieved using modalPresentationStyle. I wanted to create a view like the native Twitter/Facebook sharing sheet's size with UINavigationController so that I can push/pop more UIViewControllers. It should work for iPhone and iPad. 回答1: You can use View Controller Containment to do this. See "Implementing A Container View Controller" at http:/

iOS-6 — How to achieve conditional autorotation?

旧城冷巷雨未停 提交于 2020-01-15 10:33:33
问题 I've spend the past three days trying to figure out the iOS-6 autorotation mess, and have not arrived at a solution. It's relatively straight-forward to have an app where all views rotate, or where rotation is completely disabled. And (conveniently for our needs) if you use a MPMoviePlayerViewController it will autorotate even if the app has autorotation disabled. But having conditional autorotation, where some views are allowed to rotate and others are not, is elusive. I can achieve

iOS 6.0 MPMoviePlayerController full screen mode black color? then App blocked no more actions

孤街浪徒 提交于 2020-01-15 03:26:08
问题 MPMoviePlayerController video goes to full screen mode at the time screen is black color. And then the app was blocked. This issue only for iOS 6.0. But iOS 5.1 working fine. This is my code. IF I double click the player full screen is opened, But show black screen. self.moviePlayerController = [[MPMoviePlayerController alloc] init]; [self.moviePlayerController.view setFrame:_moviePlayerContentView.bounds]; [self.moviePlayerController setControlStyle:MPMovieControlStyleNone]; [self

-ObjC flag for Restkit causes compilation error when I add libZSDK_API.a

柔情痞子 提交于 2020-01-14 18:54:54
问题 I am using the RestKit to consume web services. RestKit worked fine until I tried add the libZSDK_API.a library (this library is to manage the zebra printers by Network or bluetooth) Several Tutorials indicate this step to add the RestKit to iOS Project: Add in "other linker flags" the value -ObjC But this flag (-ObjC) cause compilation error when I added the library, When I remove this flag the iOS app compile correctly but when I execute the app is crashed because the Project does not have

UIPageViewController programmatically turning pages does not update Page Indicator

只谈情不闲聊 提交于 2020-01-14 16:36:19
问题 When I programmatically turn the page in a UIPageViewController using a method similar to this answer, the Page Indicators are not updated. Swiping to the next/previous page updates the page indicators as expected. What do I need to do to update the Page Indicators when programmatically turning the page? i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active? I noticed in the documentation, the

UIPageViewController programmatically turning pages does not update Page Indicator

霸气de小男生 提交于 2020-01-14 16:34:36
问题 When I programmatically turn the page in a UIPageViewController using a method similar to this answer, the Page Indicators are not updated. Swiping to the next/previous page updates the page indicators as expected. What do I need to do to update the Page Indicators when programmatically turning the page? i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active? I noticed in the documentation, the