ios7

Why is UIWebView canGoBack=NO in iOS7?

不问归期 提交于 2019-12-28 05:47:04
问题 I'm embedding this web site into my app like this: NSString *url = [NSString stringWithFormat:@"https://mobile.twitter.com/search?q=%@", @"@test OR #test"]; url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [self.twitterWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]]; self.twitterWebView.scalesPageToFit = YES; And I have 2 buttons for going back and forward in this web site. I'm calling [self.twitterWebView goBack]; and [self

iOS 7 BUG - NSAttributedString does not appear

时间秒杀一切 提交于 2019-12-28 04:00:33
问题 Last week I asked a question about a Simulator bug with NSAttributedString not displaying: iOS 7 Simulator Bug - NSAttributedString does not appear Unfortunately it now appears this is not a simulator bug but an iOS 7 bug. I have now reproduced this issue on an iPhone 5 device. The bug appears to be the combination of using NSUnderlineStyleAttributeName & NSParagraphStyleAttributeName as attributes for a NSAttributedString. I have only tested on two iOS 7 devices so far, and the issue has

Xcode error while validation - “Your binary is not optimized for iPhone 5”

倾然丶 夕夏残阳落幕 提交于 2019-12-28 03:40:20
问题 Just got stuck with this error while I'm trying to publish an app to app store. Sorry because i cant copy-paste the error code so I will post an image in my question. 回答1: Are you sure the 568h file is actually in PNG format? Also make sure that you provided support for iphone 5 for all your screens? Only adding Default-568h@2x.png is not gaurantee for iphone 5 support. You have to check for framing of all your view for iphone 3.5" and 4" device. You can do the framing by code or autoresizing

View got hidden below UINavigationBar iOS 7

只愿长相守 提交于 2019-12-28 03:32:07
问题 Earlier, I was using iOS 6.1 for my project. Recently I have switched to iOS 7. For, a lot of changes I knew, I updated my code.. But I have observed a strange behavior. My view on every screen gets hidden below navigation bar. Repositioning view solves the problem for iOS7, but creates problems for older iOS versions. Can anyone explain me, what is the reason and why does it happen?? What has been changed in iOS 7 that's causing this problem?? Any help would be appreciated.. 回答1: Try

Creating a blur effect in iOS7

a 夏天 提交于 2019-12-28 03:30:29
问题 I have been searching for an answer to this question in a few hours now, and I just can't figure it out. I want to add a gaussian blur effect to the image when i press the button "Button". The user is the one that is adding the image. I have created an action for the "Button" based on sources from SO and other places on the web. It will not work. What am I doing wrong? Any code would be greatly appreciated. Here is my "Button" action: - (IBAction)test:(id)sender { CIFilter *gaussianBlurFilter

Changing the status bar text color in splash screen iOS 7

淺唱寂寞╮ 提交于 2019-12-28 03:24:07
问题 I know that are already some stackoverflow questions that say how to change the status bar for all view controllers. I am currently changing the color of status bar this way: if(IS_IOS7) [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; In the application:DidFinishLaunching Additionally, I have changed the value of UIViewControllerBasedStatusBarAppearance in the plist to NO . However, in the splashscreen it stills shows the status bar text with the black

How to find size of a file before downloading it in iOS 7?

元气小坏坏 提交于 2019-12-28 03:10:09
问题 Wanted to find size of a file on some server before downloading it in iOS 7... I have a method of NSURLConnectionDelegate but it is deprecated after iOS 4.3 Here was that method: - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response 回答1: You should instead use the NSURLConnectionDataDelegate Note : DATADelegate and its didReceiveResponse: method to send a HEAD request to get just the header: - (void)connection:(NSURLConnection *)connection

How can I get a transparent background in my iOS app so I can see the Home Screen wallpaper?

浪尽此生 提交于 2019-12-28 02:53:31
问题 I’m fairly sure this is going to be straight forward in that it’s probably not possible. Basically, I’d like to be able to lightly see the background wallpaper through my view in the same way that the new Newsstand app does. I've tried changing the alpha value of the view, and the background color to clear , but neither of these seem to do it. 回答1: Apple has removed the ability to use this api in 7.0.3. What a shame. You certainly can in iOS7, at least as of a few days ago. In our app once

Alert view is showing white rectangle in iOS7

我与影子孤独终老i 提交于 2019-12-28 02:52:27
问题 The following code works perfectly from iOS 5 to 6.1. I even have applications in store with that code: -(void)showActivityIndicator { if(!mLoadingView) // { mLoadingView = [[UIAlertView alloc] initWithTitle:@"" message:@"" delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; mLoadingView.tag = kAlertViewTag; } [mLoadingView show]; } - (void)willPresentAlertView:(UIAlertView *)alertView { if (alertView.tag == kAlertViewTag) { UIActivityIndicatorView *actInd = [[UIActivityIndicatorView

How to hide status bar in UIImagepickercontroller?

对着背影说爱祢 提交于 2019-12-28 01:56:05
问题 I am new to iOS development. I am trying to hide status bar in UIImagePickerController . Whenever I click on "Take photo", status bar appears. It doesn't hide. I want status bar to be hidden only in UIImagePickerController . Here is my code, - (IBAction)takePhoto:(UIButton *)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [self