ios7

iOS 7: How to force navigation bar of UINavigationController to be laid out as if status bar is showing even when status bar is hidden

断了今生、忘了曾经 提交于 2019-12-25 02:03:02
问题 Is there a way to force the navigation bar of a UINavigationController to be laid out as if the status bar is showing even when the status bar is hidden? My motivation is to prevent the navigation bar for shifting when a navigation controller presents a view controller that returns YES for prefersStatusBarHidden. An example of this is when you look at an attached image in an email in the Gmail app. 来源: https://stackoverflow.com/questions/22586361/ios-7-how-to-force-navigation-bar-of

How do I get back a saved picture on iPhone camera roll?

南笙酒味 提交于 2019-12-25 01:58:02
问题 I am new to iOS development and am trying to create a view that will allow the user to take a picture using their camera. What I want to happen is when the user has taken the picture, it saves it to their camera roll. I believe that can be simply accomplished by the following statement: //Let's say the image you want to save is in a UIImage called "imageToBeSaved" UIImageWriteToSavedPhotosAlbum(imageToBeSaved, nil, nil, nil); However, my question is, if the user leaves the view and then

iPad app interface orientation changed after launch of aplicaiton

☆樱花仙子☆ 提交于 2019-12-25 01:55:49
问题 i am working on app. the orientation of app is landscape but after app run interface orientation of app change the interface and rotate. splash screen display in correct way (landscape). i am using ios7 the app was code for ios5 i think there is some deprecated api issue e.g. shouldAutorotateToInterfaceOrientation bot called because this is no more available in latest ios 回答1: If you want all of our navigation controllers to respect the top view controller you can use a category so you don't

EWS Managed APIs in iOS

雨燕双飞 提交于 2019-12-25 01:55:12
问题 I'm developing an iOS app where it requires to use EWS managed APIs. I've searched the web thoroughly but I'm not getting any success. It requires to get and set user's profile information, i.e. User's display name, company name, phone number etc. 回答1: EWS Managed API is for Windows desktop apps only. You can use Exchange Web Service SOAP endpoint directly. Although it will be little tedious to handle xml based requests/responses but do-able. Take a look at this channel9 talk: Developing

UICollectionView crashes when deleting section

本秂侑毒 提交于 2019-12-25 01:54:14
问题 When using this code - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex == 0) { [self removeCompany:companySelectedInActionSheet]; NSIndexSet *indexSet = [NSIndexSet indexSetWithIndex: indexPathSelectedInActionSheet.section]; NSLog(@"IndexSet to delete from collection view: %@",indexSet); [self.collectionView deleteSections:indexSet]; } } my app crashes sometimes (10% of the time) with this error: *** Assertion failure in -

iOS - In App Purchase stopped working suddenly

旧街凉风 提交于 2019-12-25 01:43:07
问题 I have developed an application for a customer over a year ago. This app has In App Purchases, and my customer have been receiving money from her clients that use the app, I can clearly see that in iTunesConnect. Last time someone bought something was in november. But now all of a sudden, this has stopped working!!! And I don't understand why. I've checked the Bundle Identifier from XCode which maches the one in AppStore. Also the product names are equal. I downloaded the app a couple of

Apple Push Notification - Can read all incoming messages like Pebble App?

此生再无相见时 提交于 2019-12-25 01:06:54
问题 Pebble App can read all incoming messages. I want make app that read all messages in push notification center without jailbreak. Is it possible? 回答1: No , It is Not Possible. You can not read all Notifications. 回答2: Maybe it's a bit too late, but actually it's possible and Apple didn't help Pebble. The trick is "Message Access Protocol" supported by iPhone 4+ This is the technology used by in-car system, pebble and, recently, Notifyr. 来源: https://stackoverflow.com/questions/21038171/apple

Facebook Graph Api Fan page photo upload (IOS)

泄露秘密 提交于 2019-12-25 00:34:53
问题 I have an app that uploaded photos on the fly and i'm trying to add the ability to upload to the users facebook fan page (that they administer). The problem that i'm having is that i can sucessfully upload a photo to the fan page but it's not showing up on the fan page timeline, it's only showing up under the "Recent Posts by Others" section of the fan page. I'm obviously not uploading these images properly. Here's my code: ACAccountType * accountType = [_accountStore

XCode 5.0.2 simulator address book is empty

霸气de小男生 提交于 2019-12-24 19:09:13
问题 Since the update of Xcode 5.0.2, the address book of the simulator is empty. Apparently, if one wants to test address book code on the simulator, one has now to enter the test contacts by hand every time the simulator is reset. Earlier one had the standard test addresses "John Appleseed" etc. Is there any simpler way to use test contacts on the simulator? PS: I want to give credit to DipakSonara and Paaske. I had the same problem with my code that worked earlier fine, and I had never thought

MKMapView custom callOutView with auto layout iOS 6 vs. iOS7

≡放荡痞女 提交于 2019-12-24 18:09:39
问题 Hej Folks, my apps crashes on a MKMapView under iOS 6 if I use auto layout for the callout view. With iOS 7 this works fine. - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view { CustomMapAnnotation *annotation = (CustomMapAnnotation *)view.annotation; if([annotation isKindOfClass:[CustomMapAnnotation class]]) { CustomMapCalloutView *calloutView = [CustomMapCalloutView new]; calloutView.translatesAutoresizingMaskIntoConstraints = NO; calloutView.titleLabel