ios7

iOS 7 UISearchDisplayController search bar disappears

放肆的年华 提交于 2019-12-18 11:56:10
问题 I was recently updating my app and came across this issue. When i start typing in the search bar the search bar disappears and i can only see the table view. I can still keep on typing and the table view gets updated but i cannot see the search bar. Same settings works fine on iOS < 7 Any idea why this is happening ? 回答1: A little late, but I've encounter the same problem just recently. I wanted the search bar to be visible and active through all of the search, so the dimmed view, which

How to enable zoom for UICollectionView [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 11:51:16
问题 This question already has an answer here : Make UICollectionView zoomable? (1 answer) Closed 5 years ago . I am confused. I have a UICollectionView . I have my own UICollectionViewLayout subclass (iow, I am not using the Flow thing). UICollectionView instance is a subclass of UIScrollView . It adds multiple subviews. But questions like Properly zooming a UIScrollView that contains many subviews seem to say that scrollable views should just have one subview to "scroll the whole view". Seems

Send location updates every 30 minutes in Swift

自闭症网瘾萝莉.ら 提交于 2019-12-18 11:48:25
问题 I have background mode on for location services and aiming to send out location (latitude and longitude) to the server every 30 minutes. For now I am printing the same in the console. It seems to work for a while but I am wondering how do I work with NSTimer in this case. And from where should I be calling it? import UIKit import CoreLocation @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate { var window: UIWindow? var locationManager =

Invalid Image Path - No image found at the path referenced under key “CFBundleIconFile”: Icon.png

痴心易碎 提交于 2019-12-18 11:44:10
问题 I got this error from Application Loader when uploading my app to App Store. My app was developed at the time of iOS 3.0, and still targets at iOS 4.3 and above. I recently updated the app to make it iOS7-compatible. But the Application Loader always returned this type of error to me. I searched the Internet and found that I am not alone. So I created this post and hopefully what I found out about the app icons can help other people. 回答1: Sounds like you may, like me, have accepted the

Combine UIPageViewController swipes with iOS 7 UINavigationController back-swipe gesture

你说的曾经没有我的故事 提交于 2019-12-18 11:42:58
问题 I have a navigation controller that pushes a view-controller ( PARENT ) that contains an UIPageViewController ( PAGES ). Now I used pan/swipe gestures to switch between the children of the page-view-controller. However, I can no longer pop the PARENT -view controller using the swipe gesture from the left border of the screen, because it is interpreted as a gesture in PAGES . Is it possible to accomplish that swipe-to-pop when the left-most view-controller is shown? Two ideas: Return nil in

Calculate cell height based on cell's text in iOS 7

拜拜、爱过 提交于 2019-12-18 11:39:51
问题 There are many solutions out there that use "sizeWithFont" or something similar, which happens to be deprecated as of iOS 7. Here is some code I have pieced together so far. The height changes, but not at all accurately: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; // Configure the

Pull To Refresh in iOS 7

一曲冷凌霜 提交于 2019-12-18 11:35:20
问题 I'm trying to get the pull to refresh feature working properly on iOS 7 in my Table View. On viewDidLoad, I have: self.refreshControl = [[UIRefreshControl alloc] init]; [self.refreshControl addTarget:self action:@selector(refreshInvoked:forState:) forControlEvents:UIControlEventValueChanged]; I then run: -(void) refreshInvoked:(id)sender forState:(UIControlState)state { // Refresh table here... [_allEntries removeAllObjects]; [self.tableView reloadData]; [self refresh]; } When the request

AssetsLibrary framework broken on iOS 8

删除回忆录丶 提交于 2019-12-18 11:31:32
问题 I have run into an issue on iOS 8 with the Assets Library framework that appears to be a bug in iOS 8. If I create an album called 'MyMedia' and then delete it, then when I try to create the album again, this chunk of code below returns 'nil' indicating that the album 'MyMedia' exists even though it does not because I deleted it using the 'Photos' app. __block ALAssetsGroup *myGroup = nil; __block BOOL addAssetDone = false; NSString *albumName = @"MyMedia"; [assetsLib

webkit-overflow-scrolling forms broken on iOS 7 full-screen web app

瘦欲@ 提交于 2019-12-18 11:29:15
问题 I'm having trouble with a full-screen (saved to home screen) iPhone web app on iOS7. Typically, when an input is selected, it has scrolled into view above the keyboard. However, this doesn't seem to happen on iOS7 for scrolling DIVs in a full-screen web app. Thus, when a DIV uses "-webkit-overflow-scrolling: touch" and an input in the bottom half of the screen is clicked, the keyboard is fired, but the input doesn't scroll up. AND, at that time, the input won't respond to any further onFocus

iOS 7 use custom interactive transitions only some of the time

自闭症网瘾萝莉.ら 提交于 2019-12-18 11:27:33
问题 So I have a UINavigationController, with Controller A as the root controller. When I want to push Controller B on top, I want to use a custom animated transition and a custom interactive transition. This works fine. When I want to push Controller C on top, I want to fall back to the default push/pop transitions that comes with UINavigationController. To make this happen I return nil for navigationController:animationControllerForOperation:fromViewController:toViewController: however if you