ios7

How to hide first section header in UITableView (grouped style)

久未见 提交于 2019-12-17 17:25:32
问题 As the design of table views using the grouped style changed considerably with iOS 7, I would like to hide (or remove) the first section header. So far I haven't managed to achieve it. Somewhat simplified, my code looks like this: - (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { if (section == 0) return 0.0f; return 32.0f; } - (UIView*) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { if (section == 0) { UIView* view =

Build FFmpeg with xCode 5

风流意气都作罢 提交于 2019-12-17 16:53:29
问题 Does anyone know how to compile FFmpeg with xCode 5? My configure part: ./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --enable cross-compile --arch=arm --target-os=darwin --enable-neon --disable-avfilter \ --disable-bsfs \ --enable-avresample --enable-swresample --disable-iconv --enable-gpl \ --disable-demuxers --enable-demuxer=rtsp --enable-demuxer=rtp --enable-demuxer=mpegts \ --disable-decoders --enable-decoder=mp2 --enable-decoder=mp3 --enable-decoder

Perform action by clicking on some word in Uitextview or UILabel

给你一囗甜甜゛ 提交于 2019-12-17 16:26:39
问题 How can I do to perform some specific action (like showing a modal or pushing a controller) when user click on some formated/specific word in Uitextview (or UIlabel) ? I've heard about NSAttributedString but I'm not sure how to make this with it. What I want to have is the same results as the facebook app. When you click on a name it push another controller : If you can give me some hint, tutorial or whatever you want please. 回答1: Add gesture recognizer to your UITextView: //bind gesture [

How to hide the status bar programmatically in iOS 7?

删除回忆录丶 提交于 2019-12-17 16:01:19
问题 In ios7, how can I hide the statusbar programmatically? I am using XCode 4.6.1 (ios6.1) and I want to implement this in XCode itself. 回答1: in iOS7 you should implement in your viewController - (BOOL)prefersStatusBarHidden { return YES; } 回答2: you can hide status bar to set the key value "View controller-based status bar appearance" NO in plist. This is easiest way. or You can hide in code by using property statusBarHidden of UIApplication class. [[UIApplication sharedApplication]

Launch Images in iOS 7 with Xcode 5

馋奶兔 提交于 2019-12-17 15:46:52
问题 I've been setting my own names on launch images for my apps in the Info.plist like with the following images in bundle (with correct dimensions, 320x480 px for default.png and 640x960 px for default@2x.png etc.) this have been working great prior to iOS 7 and Xcode 5. Now when I look in the General tab for the corresponding target in Xcode 5 my launch image files get mixed up from other targets in my project, which worries me, even though I haven't seen wrong launch image files when actually

How to fix truncated text on <select> element on iOS7

随声附和 提交于 2019-12-17 15:37:18
问题 Is there any way to prevent iOS7 from truncating the text when selecting an option on a html select element? iOS7 truncates the text on the options text instead of wrapping it. In my specific case this is totally unusable: The above screenshot was taken from a html 5 app built with jQuery Mobile. I should also mention that this issue is not present on iOS6. 回答1: Add an empty optgroup at the end of the select list: <select> <option selected="" disabled="">Select a value</option> <option>Grumpy

Hide dots from UIPageViewController

你离开我真会死。 提交于 2019-12-17 15:34:56
问题 I would like to do to a pretty simple thing. Just remove all the dots, and the bar on the bottom of the UIPageViewController. This is the setup: I have a custom view controller which has UIPageViewController *pageController I display it like this: self.pageController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:nil]; self.pageController.dataSource = self; [

thumbnailImageAtTime: now deprecated - What's the alternative?

十年热恋 提交于 2019-12-17 15:34:46
问题 Until iOS7 update I was using... UIImage *image = [moviePlayer thumbnailImageAtTime:1.0 timeOption:MPMovieTimeOptionNearestKeyFrame]; ...with great success, so that my app could show a still of the video that the user had just taken. I understand this method, as of iOS7 has now deprecated and I need an alternative. I see there's a method of - (void)requestThumbnailImagesAtTimes:(NSArray *)playbackTimes timeOption:(MPMovieTimeOption)option though how do I return the image from it so I can

iOS 7.1 UITextView still not scrolling to cursor/caret after new line

懵懂的女人 提交于 2019-12-17 15:33:51
问题 Since iOS 7, a UITextView does not scroll automatically to the cursor as the user types text that flows to a new line. This issue is well documented on SO and elsewhere. For me, the issue is still present in iOS 7.1. What am I doing wrong? I installed Xcode 5.1 and targeted iOS 7.1. I'm using Auto Layout. Here's how I position the text view's content above the keyboard: - (void)keyboardUp:(NSNotification *)notification { NSDictionary *info = [notification userInfo]; CGRect keyboardRect = [

How to compile OpenCV for iOS7 (arm64)

不羁的心 提交于 2019-12-17 12:42:29
问题 Compiling Xcode Project fails with following errors: 'missing required architecture arm64 in file /Users/*/Git/ocr/opencv2.framework/opencv2' It works well, if i change Architectures(under Build Settings) to (armv7, armv7s) instead of (armv7, armv7s). How to change the opencv python build script, to add arm64 support to opencv2.framework? 回答1: The latest OpenCV iOS framework supports 64 bit by default It can be downloaded at: OpenCV download page 回答2: I modified the following to make it build