ios7

UIButton doesn't appear on iPhone 5S

狂风中的少年 提交于 2019-12-23 16:22:42
问题 I'm kind of new to iOS development and development in general. I've been working on a time/record keeping app and I ran into a weird problem. On one of my view controllers I have a UITableView with each cell being a button that leads to a different view controller. On the first cell the user is supposed to be able to push a UIButton to run a method that starts counting time. When you run that method it activates a second UIButton that the user can push to stop counting time. While this is

iOS Aspect Fill Image Resizing with Content Aligned to Left/Top Edge

徘徊边缘 提交于 2019-12-23 16:06:56
问题 I am developing a universal app for iOS-7. this particular question is specific to iPad only. I want to place an image as background of root view of a View Controller i.e. the image should fill the whole screen. The 1x image has size:768x1024. This works for Portrait orientations as non-retina resolution of iPad is also 768x1024 in portrait. In Landscape however the image does not fit. I have tried using ScaleToFit but since aspect ratio of image is not preserved I can not use ScaleToFit

AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')

老子叫甜甜 提交于 2019-12-23 15:40:02
问题 I got a warning in Xcode 5.1 as stated below AFNetworking 2.2.0: AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int') Is this important? 回答1: This mean is arm64 architecture int64_t range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 but int range is -2,147,483,648 to 2,147,483,647 . so compiler say to Loss of value. See a this: ConvertingYourAppto-64Bit if you don't want more warning. you can must change

Cannot show Delete button on tableviewcell ios 7

天大地大妈咪最大 提交于 2019-12-23 15:11:49
问题 I used UITableviewcellEditingstyleDelete to show button for user click on it to show delete button (it's the same way you can see on email app, when user click edit and then click on button to show the delete button). It's work fine in ios6 but when I build my app on device which have ios 7, the delete button is disappear, but when you tap in the delete button's area it's also can delete. The prolem is user cannot see the delete button (The button which have red color provide by OS). My code

iOS 7 navbar colours not showing properly on iPhone 4

[亡魂溺海] 提交于 2019-12-23 13:21:00
问题 My navigation bar colours appear normally in iOS 7 Deploying iOS 6.0, but if the system version is iOS 7.0 or later, some of the navigation bar colouring doesn't display properly on iPhone 4. Works fine in iPhone 5. Here's how I am doing it: if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) { self.edgesForExtendedLayout = UIRectEdgeNone; [self.navigationController.navigationBar setBarTintColor:[UIColor blueColor]]; [self.navigationController.navigationBar setTranslucent:YES]; } #define

-[__NSCFString boundingRectWithSize:options:attributes:context:]: unrecognized selector sent to instance

半腔热情 提交于 2019-12-23 12:42:21
问题 @interface PromotionsListViewController : UITableViewController - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"PromotionCell"; PromotionCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[PromotionCell alloc] init]; } // Configure the cell... Promotion *promotion = [self.promotionList objectAtIndex:indexPath.row]; [cell.imgView setImageWithURL:[NSURL

AVCaptureDevice's isLowLightBoostSupported always returns false on 5S iOS7.1 (for automaticallyEnablesLowLightBoostWhenAvailable)

独自空忆成欢 提交于 2019-12-23 12:36:59
问题 I'm attempting to enable AVCaptureDevice's automaticallyEnablesLowLightBoostWhenAvailable in an iOS camera app, but I've been utterly unable to make AVCaptureDevice's isLowLightBoostSupported return true. Question: Is there anything that needs to be done to enable the low light boost api beyond locking for configuration? Is there any known reason that isLowLightBoostSupported would always return false (for all devices) on a fully updated, modern, system? I'm testing on a 5S with iOS 7.1. For

how to call @selector method from another class

五迷三道 提交于 2019-12-23 11:58:53
问题 is it possible to call @selector methods from another class ? for example i make a method "bannerTapped:" and call it from "myViewController.m" class. myviewcontroller.m : anotherClass *ac= [[anotherClass alloc]init]; UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc]initWithTarget:ac action:@selector(bannerTapped:)]; singleTap.numberOfTapsRequired = 1; singleTap.numberOfTouchesRequired = 1; cell.conversationImageView.tag = indexPath.row; [cell.conversationImageView

How to dismiss a stack of modal view controllers with animation without flashing on screen any of the presented VCs between the top and bottom?

梦想与她 提交于 2019-12-23 11:39:12
问题 UPDATED: Fixed via "screenshot" method outline below. This works but is there a more elegant way? How would I go about dismissing a stack of modal view controllers with animation without flashing on screen any of the presented VCs between the top and bottom? Trying to do this with animation isn't working. See code below and inline comments describing my issue. You can copy/paste this code into a new project in Xcode to see for yourself if you'd like! // // ViewController.m // MultipleModals /

iOS7 UIStatusBar blur not correct

懵懂的女人 提交于 2019-12-23 10:51:53
问题 I am using a UIToolbar for the controls at the top of the screen (There is no navigation controller) The toolbar has the look I want, however the status bar is entirely clear. I cannot seem to mimic the blur that the UIToolbar has in it's transparency. Has anyone come across a solution to this that does not involve using a navigation controller? 回答1: In Order to achieve this you need to implement methods in the UIBarPositioningDelegate protocol: https://developer.apple.com/library/ios