FAQ Database Discussion Community


Battery and wifi indicators on normal view

ios,iphone,ios7
I am using a simple view in application instead of navigation bar. Is their any way to show wifi, battery indicator on the view without using default navigation bar?

Does NSFetchedResultsController fetch all results at once?

core-data,ios7
I have a large number of objects in Core Data. Does the following only load what is needed for the UI as and when is needed or does it load all objects up front? NSFetchedResultsController does have a fetchedObjects property.. does it means it fetches everything upfront? What is the...

Issue with using RGB colors in IOS

objective-c,ios7,uibutton,xcode6,uicolor
I want to use RGB color to set set background color of UIButton. I have lots of UIButtons so I decided to make a custom class.But when I try to use colorWithRed I am getting error. First Code: [self.layer setBackgroundColor:[UIColor colorWithRed:60/255.0f green:146/255.0f blue:180/255.0f alpha:1.0f]]; Error Second Code self.layer.backgroundColor = [UIColor...

UIViewController view not full screen XCode 6

ios7,uiviewcontroller,xcode6
I made a simple app using XCode 6 but something wrong is happening with its view frame. The frame of the UIViewController's view is not covering full screen and moreover the status bar is also shifted by some distance.Can someone give me any clue? P.S I am testing it on...

Foundation -[NSConcreteMapTable assign:key:value:isNew:] Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at

ios,ios7,crash-reports,crashlytics
I have a crash that happens only in IOS 7, I cannot reproduce it but it happens a lot. Does some one have an answer or at least have any idea where the problem can be. I've allready removed all the warnings regarding ios7 and the crash still occurs. Log...

Restrict Interface Orientation in iOS 7 and iOS 8

iphone,ios7,ios8,screen-orientation,interface-orientation
I am trying to implement something where I stuck at one point. I want some orientation restrictions as follows: For iPhone 4, 4S, 5, 5S, & 6 - Portrait Only For iPhone 6 Plus - Both Portrait & Landscape For iPad - Both Portrait & Landscape I have tried all...

Convert double to Int64 in swift

ios,swift,ios7,casting,primes
I'm a beginner to swift. I'm just trying out to write a program to print nth prime, but having some trouble converting sqrt function to int. Below is the code which works fine with c/c++. func nthPrime(n: Int64) { var i:Int64=4,j:Int64=0, prime:Int64=0 var count:Int64=0 while count != n { for...

How to animate along with device rotation on iOS 7

animation,ios7,ios8,rotation
I want to do some animation along with device rotation. On iOS 8, I can do this: - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator { [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]; [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) { // My custom animation } completion:nil]; } But this method is not available on iOS 7. I tried to do the similar...

ios-how to make alarm with custom sound and snooze when app is active and inactive both

ios,iphone,ios7
I have searched, and I found UILocalNotification, but it works only when app is not active and i can not implement custom sound and snooze. Here is my code UILocalNotification* alarm = [[UILocalNotification alloc] init]; alarm.fireDate = [myPicker date]; alarm.timeZone = [NSTimeZone defaultTimeZone]; alarm.hasAction = YES; alarm.alertAction = @"SNOOZE"; alarm.repeatInterval...

How to handle refund/cancellation in-app purchase

ios,ios7,ios8,in-app-purchase
I'm trying to handle the refund in-app purchase for iOS. But I couldn't find a clear guidelines to do this. So I have a membership type in-app purchase feature, where the user credentials is not necessarily ties to the itunes account. Is there some kind of identifier that I can...

Why do my UIButtons change color in iOS 7 upon controller transition?

cocoa-touch,ios7
So I have some UIButtons. They're blue when enabled, and gray when disabled, as I expect. If I go from my front page to Current Contests and there's a network error like this: I call [self.navigationController popViewControllerAnimated:YES]; to get back to the main page, and I get this on iOS...

Auto Layout Top is not working well with 10px space at top

iphone,ios7,ios8,autolayout
I'm building iphone app. I use auto-layout. Please check following images. As you can see, the top space is set as 0px. but in running, the top space is 10px. I want to fix this issue asap. P.S. it is same on iOS7 & iOS8. Thanks,...

Google AdMob error in iOS 7

ios,objective-c,ios7,admob
I've integrated AdMob in my iOS project but it gives me the following error. module 'GoogleMobileAds' not found I have already imported the AdMob SDK into my project and added the following import. @import GoogleMobileAds; ...

Api to read device logs on iOS 8

ios,objective-c,ios7,ios8,ios8.1
How does this app "System Console" (made by a company named Electric Labs Ltd) access the device logs on iOS 8? I'm trying to do the same thing but all I get is my own app's log messages. I'm using the api for the Apple System Logging facility following the...

iOS UITableView cellForRowAtIndexPath Not Calling

ios,xcode,ios7,ios5
It's UITableView numberOfRowsInSection not calling. but cellForRowAtIndexPath is not being called. I don't understand why cellForRowAtIndexPath is not called. if i retun number of row in section return (allOfficedata.count >0)? allOfficedata.count + 1 : allOfficedata.count; or return [array count]+1; if (allOfficedata.count >0) return [allOfficedata count] + 1; is not calling...

In ios 8 push notification not showing me badges for current app

php,ios,iphone,ios7,push-notification
Hello friends i am new in push notification please help me out. I am trying to get badge count for my app but "NSDictionary userInfo" contains only alert and sound . this is the code for register device for push notification -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)])...

UIActionSheet on iOS8

ios,ios7,ios8,chromecast,uiactionsheet
I have an app that connects to Chromecast - I referenced from the Chromecast Sample Code which uses UIActionSheet to display the list of Chromecast devices I can connect to. This was working well for my app which has been running with BaseSDK=iOS6.1. Recently I tried to upgrade to BaseSDK=iOS8.1...

How Reduce the Width of ContentSize in UITableViewCell

ios,objective-c,iphone,ios7,ios6.0
How to Reduce the size of contentSize width of UITableViewCell. -> I tried,in UITableView property but there had options for reduce the UITableViewCell contentSize of Height but not for Width. -> I want to reduce the UITableViewCell contentSize width in UITableView....

iOS 7.1 crash if heightForRowAtIndexPath is not declared

uitableview,ios7,autolayout,ios7.1
I was trying to use estimatedHeightForRowAtIndexPath for dynamic cell height with AutoLayout and working as expected in iOS8 but crush in iOS7.1 by saying this: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MyProject.ViewController tableView:heightForRowAtIndexPath:]: unrecognized selector sent to instance 0x79e91350' If I define heightForRowAtIndexPath, error go away but...

How can I download for longer than three minutes with Dropbox?

ios,ios7,ios8,dropbox-api,background-task
I'm at a point with my app where i'm able to download files, but there is a problem where if the download is >4 minutes, it times out. I've managed to boil it down to the it being 1 min for iPad auto lock, 3 for the background task. I'm...

Splash screen not visible for iPad, only a black screen gets shown

ios,ios7
I have an universal app. The splash screen loads fine for iPhone but the same is not visible on the iPad. Instead a black screen appears in its place. I have gone through the questions posted in this regard and have followed the steps but to no avail. I am...

Why am I unable to save my UIFontDescriptor into a variable?

objective-c,ios7,uikit,uifont,uifontdescriptor
I have the following code: UIFontDescriptor *fd = [UIFont fontWithDescriptor:[[UIFont systemFontOfSize:[UIFont systemFontSize]].fontDescriptor fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold|UIFontDescriptorTraitItalic]; But it gives me the error "Expected expression". What does that mean?...

How to add directions among two custom locations in Mapview for IOS 7 (objective c)

objective-c,ios7,ios8,mkmapview
I have to add directions among two custom locations in IOS 7. Any one tell me please. Thanks. ...

first tap not registering on collectionView Xcode

objective-c,xcode,ios7,uiviewcontroller,collectionview
I have a collectionView with an array populating it. I have it set up that when a cell is tapped a second modal view is presented. The problem is that the first tap is not recognized. The collectionView in storyboard, along with the cell and the image inside the cell...

UIView hides Navigation bar back button text how to make it visible?

swift,ios7,xamarin.forms
I am trying to change Navigation bar background to Gradient Red. I have added subview to navigation bar which sets background to Color I want. but then Navigation bar back button Text is invisible. Back button is visible but Text is not Visible. UIView view = new UIView(); var gradient...

Custom circle progress view [closed]

ios,objective-c,iphone,ios7
I search a lot, but cant find control like this in internet. Can you help me to do this my own? ...

What is actaully the value of UIApplicationBackgroundFetchIntervalMinimum?

ios,ios7
I'm about setting up background fetch for an iOS application. I do: func application( application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]? ) -> Bool { ... application.setMinimumBackgroundFetchInterval( UIApplicationBackgroundFetchIntervalMinimum) ... if I inspect and print UIApplicationBackgroundFetchIntervalMinimum in the debugger it says 0 - what is the value actually ? I tried looking...

UILabel text updation

ios,ios7,uilabel
I have aUILabel which I want to update. If I will login with a user name then the UILabel will be updated with that user name,which it is doing correctly and storing the value. Now I want whenever i will logout then the UILabel text should return the previous value...

Simulator not found in Product->destination (Xcode) [Solved]

ios,objective-c,xcode,git,ios7
I download a project from github git clone https://github.com/alienjun/CITwirlDistortionDemo.git When I try running it , I find that there aren't any simulators in the Product->destination I can use the simulator if I create a new project( single view ) why I can't find simulator when I use this project cloned...

No NIBs, UIWindow Not Filling Screen, iOS 7

ios,objective-c,iphone,ios7
I'm avoiding using NIBs completely. I'm getting problems on iOS 7.1, but not on iOS 8.x. iOS 7 vs. iOS 8 The code looks like this in the UIResponder <UIApplicationDelegate> - (void) setupViewController { CGRect frame = UIScreen.mainScreen.bounds; self.window = [[UIWindow alloc] initWithFrame:frame]; self.window.backgroundColor = UIColor.whiteColor; // viewController's view is...

this class is not key value coding-compliant for the key itemname

ios,objective-c,iphone,core-data,ios7
What I am trying to do is take the text that is in my uitextfield called editItemField and write the value in the NSString called toDoItemName to my core data model with the attribute named itemname. Im getting the above error. My core data model has one attribute named itemname...

iOS 7 jQuery animation fail on mobile opera

jquery,mobile,ios7,safari,jquery-animate
I'm working on drupal theme which should support iOS7 device. On my page I placed little button that scrolls to exact page position (After specified item). I wrote simple function: $('#scrollbutton').click(function(e){ e = e || event; var offset = $(this).offset(); //offset.left -= 20; offset.top += 1; $('html, body').animate({ scrollTop: offset.top,...

Sort NSArray for a specific order

iphone,sorting,ios7,nsarray
I have an NSArray of custom objects. Each object contains one integer value for ex. 1,2,3,4 Now I want to sort Array like below 9 7 5 3 1 2 4 6 8 Could some one help me?...

UIButton with multi-line titleLabel with NSAttributedString doesn't work in iOS 7 but works in iOS8

ios7,uibutton,nsattributedstring
In my project i have a requirement to show a UIButton that has two lines of text in its titleLabel With NSAttributedString. Its working fine in iOS8 but Where as in iOS7 its not working,i can see two lined text after selected button. This is the code I'm using: calendarBtn=...

KVO with shared NSUserDefaults in Swift

swift,ios7,ios8
I am having issues communicating between my host app and its extensions through communicating NSUserDefaults changes. I initialized NSUserDefaults using init(suiteName:), added KVO observer using the addObserver(...) method and overrided the method observeValueForKeyPath(...) but the method observeValueForKeyPath(...) is not called when I change the value corresponding to the observing key....

How can i call the method from class Method [duplicate]

ios,iphone,ios7,ios5
This question already has an answer here: Call instance method from class method 3 answers i want to call the method [self methodName]; in class method but it will not call in same class. i tried +(void)myMehod { [self methoName]; } ...

How to make a crossplatform mobile application? [closed]

android,ios7
How to prepare a cross platform mobile application? Please guide. Any alternative to phone gap?

UICollectionview immediate layout update

ios,swift,layout,ios7,uicollectionview
I am having a small problem I just can't find a solution for. I am trying to invalidate the layout of a UICollectionViewFlowLayout after the first cell is dequeued in collectionView(collectionView:, cellForItemAtIndexPath indexPath:) so it fits it's content before appearing to the user. I need to do this this way,...

Access paging in iOS - previous and next : retrieved in JSON from facebook graph-api

json,facebook-graph-api,ios7,paging
Access paging in iOS Code from JSON previous and next link In JSON object retrieved from graph api, due to loads of information the information is paged, when I try to access the previous and next link it gives OAuth error. Can anyone help in how to access the link...

My contentMode not work when I lay my ipad

objective-c,ios7,contentmode
I have these codes they should use UIViewContentModeScaleAspectFill if the device is standing but if it is lying want to use UIViewContentModeScaleAspectFit. The problem is that these codes do not work and when I lay the ipad the image goes to the bottom left corner. It is urgent! I need...

Error in integrating Google Map API to iOS Application

ios,objective-c,google-maps,ios7,google-maps-sdk-ios
I am using the google map API for my iOS Application. Till yesterday it was working very fine but today the map is not loading and I am continuous getting the following errors : ClientParametersRequest failed, 3 attempts remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be completed....

Check UITextfield have only Alphabet not numeric value

ios,iphone,ios7
I am creating one form I want to check in Name Field if any one enter Number then show alert. Here is the code: NSString *str = abc.text; NSCharacterSet *alphaSet = [NSCharacterSet alphanumericCharacterSet]; BOOL valid = [[str stringByTrimmingCharactersInSet:alphaSet] isEqualToString:@""]; if (!(valid)) { NSLog(@"number present"); } else { NSLog(@"number not present");...

Window's root view controller is not Split view controller

ios,ios7,xcode6,uisplitviewcontroller
I am trying to modify my existing app to use a split view controller. I've followed the sample master/detail project structure by adding a split view controller into my storyboard, made it the initial view controller and everything seemed to be working fine, until I tried to run the app...

How to send json data in the Http request to POST Method in JSON Parsing

objective-c,json,ios7,http-post
I need to Parse below string to POST method in iOS "jsonData":{"empId":"cxvd","password":"sfsd"} But I m getting the error as Res: Tomcat Error HTTP Status 400 - Required String parameter 'jsonData' is not present //------ Method I have used to Parse is ---------- // +(void) requestToServerForLogin:(NSString*)userName andPassward: (NSString*)password onCompletion:(RequestCompletionHandler) handler {...

set cameraOverlayView with xib

ios,objective-c,iphone,ios7,uiimagepickercontroller
I created a simple xib file with a UIView and a UILabel in the middle of the view. I then set the owner of the xib to be the ViewController that will be using it. I created an outlet from the UIView to my ViewController and did the following: imagePicker.cameraOverlayView...

Can I release an update for iOS versions not supported before?

ios,ios7,ios8,app-store
I have an app which was initially made for iOS 7 and 8 support. After a while the difference between the way iOS 8 and iOS 7 was supporting layouts especially in working with container views, made me continue the support only for iOS 8. Now I have some time...

Create menu that looks like iOS7 select menu

jquery,css,ios7,menu,animated
I'm trying to create a menu that works like the select menus on iOS7. I've been using jQuery but I haven't been able to get it to work smoothly and look nice. Has anyone managed to do this or do you know of anywhere else it has been done so...

UISplitViewController “ViewIdentifier was not found in Storyboard” error with iOS 7

ios,objective-c,iphone,ios7
I'm dealing with an odd error around an UISplitViewController I created a library in order to deal with ViewControllers presentation and reuse code as much as possible. Within this code I instantiate ViewControllers using their storyboard IDs and I'm using to switch a ViewController with a SplitViewController. Despite it works...

Post Request in Json format iOS

ios,json,ios7
I am new in iOS i have to send post request in json format. like, {"user":{"email":"[email protected]"}} My coding is like, NSMutableDictionary *postDict = [[NSMutableDictionary alloc]init]; [postDict setValue:@"[email protected]" forKey:@"email"]; // [postDict setValue:text_password.text forKey:@"password"]; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDict options:0 error:nil]; NSString *stringData = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; I am getting output...

ios7 registerForRemoteNotificationTypes doesn't get prompted to ask the user for permission

ios,swift,ios7,ios8
When i setup notifications in the AppDelegate only ask to user for permission under iOS8 despite i reset the simulator settings (i know remote notifications doesnt work in simulator, but i dont have a device with ios7 to test it, but i'm surprised that its not asking to allow remote...

how can I create a URL/site to send a HTTP 204 or HTTP 403 response?

objective-c,http,servlets,post,ios7
I'm trying to create an app with a login page to POST to a url and return a status code. For now the app is to call a URL that returns a HTTP 204 or HTTP 403 response. How is this done? Do I need to create/implement a servlet?

NSURLSession notify when all tasks are completed

ios,ios7
I have been reading through the documentation and looking online but have not been able to find a way of doing this. Currently, I am creating 20 tasks in a session and would like to have a way of executing some kind of callback only when all 20 tasks for...

Swift: The tableView do not reload data after press button in alert view

ios,uitableview,swift,ios7,uialertview
I have add the alert view which let user to control that they can delete the all items in their database, but the table do not reload the data again. I have tried self.tableView.delegate = self and self.tableView.reloadData(), but it does not work. Here is the code: class ItineraryViewontroller: UITableViewController...

ios 7 Undefined symbols for architecture armv7 on ios 7

ios,ios7,armv7
I am working on xcode 6 and I create a static library, the application working fine on ios 8 but I got this problem Undefined symbols for architecture armv7 when I try to lunch the app on ios 7. Can someone tell me why please? ...

Perform three different action for a single button

ios,xcode,ios7
I want to perform three different actions for a single button. I surfed in google also it shows some different options but those are not helpful. I have declared NSInteger inside CustomUIButton i.e. click and initialize inside IBAction to 0. Here is the code. -(void)changeStudentAction:(id)sender { CustomUIButton *button=sender; NSInteger flag...

Selecting table cell to show new view crashes on iOS7 with “unrecognized selector sent to instance”

ios,uitableview,swift,ios7
I am new to iOS development and I wrote an RSS-feed reader in Swift. The feed items are displayed in a UITableView. When I select (touch, click) an item, a new UIView is displayed, showing the feed description of the selected item. It works on iOS8 but when I try...

Swift PrepareForSegue EXC_BREAKPOINT

xcode,swift,ios7
I have a runtime error: Thread 1: EXC_BreakPoint(cod=EXC_I1386_BPT,subcode=0x0) I did not set any breakpoint inside Xcode. From the debugger,error is due to PrepareForSegue that stops a thread "swift_dynamicCastClassUnconditional" BarTableViewController1 Class @IBAction func solve_PressedBar(sender: AnyObject) { self.performSegueWithIdentifier("SolveBar", sender: sender) } override func prepareForSegue ( segue: UIStoryboardSegue, sender: AnyObject!) { if (segue.identifier...

UIToolBar lose translucent when clipsToBounds in iOS7.x

ios,ios7,uitoolbar
Usually i use UIToolBar to fake the live blur effect, it has been working great for me. But there is a place I need to have a rounded corner toolbar, however, whenever I set the cornerRadius and clipsToBounds, the translucent (blur) effect is gone, my tool bar becomes transparent. here...

Need help figuring out iOS 8 bug/glitch

debugging,ios7,uiviewcontroller,ios8
I have 2 view controllers in game App. 1st VC is no gameplay only intro. 2nd VC is gameplay and GameOver screen. On GameOver screen is a BACK button that takes you back to 1st VC. On GameOver is also Final score and High Score. Example, current Final score =...

Xcode 6 Universal storyboard NSKeyedUnarchiver initForReadingWithData error

ios,ipad,ios7,universal-storyboard
I've migrated my project from iOS 7 to iOS 8 keeping iOS 7 support. Since i've redone all the graphics i've thrown away the old storyboard and created a new one using the new universal storyboard and size classes. Everything works fine for iOS 8 iPhone/iPad and iOS 7 iPhone...

UITabBarItem invisible in iOS 7 with UISplitViewController

ios,ios7,uitabbarcontroller,uisplitviewcontroller,uitabbaritem
I have a little problem easily reproductible with Xcode 6.1.1 : Create a new Tabbed application project Set the deployment target to iOS 7 Go into the storyboard and drag and drop a UISplitViewController Link it to the UITabBarController Edit the new Tab Bar Item, set an image and set...

iOS How to manage different features that requires a 3rd-party framework

ios,ios7,ios-frameworks
I developed an SDK distributed to our publishers as a standard iOS framework. To be as much clear as possibile let's say my SDK is called 'A'. 'A' needs a 3rd-party iOS framework (called 'B') that manages a particular feature. So, for example, I have a class in 'A' like...

adding calendar event in performFetchWithCompletionHandler

ios,iphone,ipad,ios7,ios8
I am trying to add calendar event in -(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler based on some data app received for creating a calendar event. My problem is : the code for creating calendar event runs without any issue but, the event does not shows up on calendar. when i bring the...

What does this auto layout error mean?

ios7,ios8,autolayout
I recently was trying to making my IOS 8 app built, with swift, become compatible with IOS 7 devices, but I've been running into some minor issues. I've fixed most of them, but I can't seem to find this error on the web or anything close to it. Can anyone...

iOS Swift - bottom menu like skype

ios,swift,animation,ios7,ios8
I want to create bottom menu like in Skype application. It should be at bottom with some icons and it could slide up to show more items. What I've created is UIView with height constraint. When there is swipe gesture or dots are tapped then I change constraint of Menu...

how can I set up a contentMode in my Pictures application?

ios,objective-c,ios7,uiimageview,contentmode
I have a big problem. I am using this method willAnimateRotationToInterfaceOrientation so I can see an image in a certain way when I lay my ipad. The problem is that when I lay my ipad the image besides getting cut is also in the lower left corner. I want her...

Autolayout detect when UIView got the frame

ios,ios7,autolayout,nsautolayout,ios-autolayout
I have UIView that has auto layout constraints. I create it with frame CGRectZero. So I don't the real size. It will depend on superview. But I want to know when my view get a frame that I can use for my calculation....

Remove “heightForRowAtIndexPath” for iOS8

ios,ios7,ios8,deprecated,heightforrowatindexpath
I'm trying to solve this problem for two days before finding the solution. Here it is. ====== Hi everyone, I actually manage the height of my tableViewCell in iOS7 with the delegate method heightForRowAtIndexPath: Now, in iOS8 I use the property tableView.rowHeight = UITableViewAutomaticDimension with autolayout and it works great...

App crashing while adding constraints programatically

ios,objective-c,ios7,autolayout
I am using visual format to define constraints. The goal is to place a UIView at the bottom of the super view say self.view with height fixed as 40, and width automatically. I have done this using Storyboard but I am unable to do it programatically. Here is the code...

How to disable landscape orientation on a single view at iOS 7/8

ios,ios7,ios8,orientation,autorotate
I enabled the landscape orientations for my app at the general target settings: This is all working fine - the app is available in all selected orientations... Now I want to disable the landscape mode on only one single view. I tried the following at the specific view controller: -...

Simple animation not working on iOS7

objective-c,animation,ios7
Im using a button to trigger the following animation: newPosition1=CGPointMake(200.0f + _btnAgregar.frame.size.width/2.0f, _btnAgregar.center.y); [UIView animateWithDuration:0.5f animations:^{ _btnAgregar.center=newPosition1; }]; It works just fine on any device running on iOS8, but does absolutely nothing when running on iOS7. Any idea why? Thanks....

Incompatible pointer types assigning to 'NSArray' to 'NSString'

ios,objective-c,iphone,ios7,nsstring
The RecipeBookViewController.m file is showing a warning in Xcode "Incompatible pointer types assigning to 'NSArray' to 'NSString' can anyone fix this warning. I am developing RecipeBook application from appcoda website from tutorial Tutorial #14 Here is my Recipe.h file #import <Foundation/Foundation.h> @interface Recipe : NSObject @property (strong, nonatomic) NSString *name;...

systemLayoutSizeFittingSize:UILayoutFittingCompressedSize doesn't compress

objective-c,uitableview,ios7,ios8,autolayout
I have problems with auto layout and the UITableView header (tableHeaderView) in iOS 8.X e iOS7.x. The self.HeaderView is a XIB built using auto layout. It's used inside a scrollviewer followed by other views and the result is correct. Then I set it as header of a table view (as...

How to store Whole index path, previous,before previous and current selected index path value to the NSArray within didSelectRowAtIndexPath: methods

ios,objective-c,iphone,uitableview,ios7
Problem : I develop Quiz apps. In the apps there are like 5 questions in one tableview. Questions are taken from a plist file. Whenever I have selected the questions choice in the tableview it is showing the current selected index_path value. But I want all the question choices like...

How to detect if the UIMotionEffect is supported?

ios7,ios8,iphone-4
Is there a way to detect if the UIMotionEffect is supported on the device my app is running on?

Testflight beta testing external users needs to install provisioning profile

ios,iphone,ios7,itunesconnect,testflight
I am planning on using TestFlight from next month onwards to beta test my App. Apple allow 25 internal users and 1000 external users. Do all 1000 external users needs to register their device in developers account, do they need to install provisioning profile separately, or do they need to...

Add a 0.5 point height subview to UINavigationBar not show in iOS7

ios,objective-c,ios7,uiview,uinavigationbar
I have a class inherit from UINavigationBar and I want to add a separator line as its subview to separate the navigation bar and the navigation content. The line's height is defined as following. #define SEPERATOR_LINE_HEIGHT (1.0f / [UIScreen mainScreen].scale) My code: @interface MyPopNavigationBar : UINavigationBar @end @implementation MyPopNavigationBar {...

Prevent user from entering more characters into uitextview

ios7,xcode6,uitextview,edit
How could I prevent the user from entering any more characters into a uitextview after the textview has reached a given height? Here is the code I thought would work but does not. I can't put in any more characters but for some reason I can't even delete any.. -...

Change UIAlertView to UIAlertController of app to get updated to iOS 8

ios7,ios8,uialertview,deprecated,uialertcontroller
I have to update to iOS 8 some apps developed for iOS 7. After UIAlertView got deprecated on iOS 8. My question is: Is it neccesary to check the iOS version, and show a UIAlertController rather than a UIAlertView? Or can I leave the implementation of UIAlertView? Will iOS can...

Getting started with iOS programming [closed]

ios,ios7,programming-languages,ios-simulator,development-environment
I am qualified experienced software engineer. Strong background in OOP/D C++, Symbian, large multi thread multi process server applications, smart phone applications. More recently android, Java, C#, windows .net asp.net. I am looking for 'recommendations' for a fast track entry to learning to develop in objective C and for iOS....

How to get user's location in iOS using google plus sdk?

ios,ios7,location,google-plus
I am integrating Google Plus login in my app along with Facebook and Twitter login. So, is it possible to get user's location(city) Like Facebook and Twitter? If yes, how? Any kind of help would be appreciated....

Swift: UIView.insertSubview( , aboweSubview) doesn't work on iOS 8

ios,swift,ios7,ios8,keywindow
This have been bugging me for some hours now, and i can't seem to find a solution :(. I have a UITableView, and when i click on a row i want to show a detailed information for that row in a "Card". I add the card in the keywindow because...

UIImage “imageNamed:” works on iOS 8, but not 7?

ios,ios7,ios8,uiimage,imagenamed
There are several answers on SO already about "imageNamed:" not working, but none have included my particular wrinkle: I'm getting nil from "imageNamed:" on iOS 7, but the same build works on iOS 8. Obviously, everything is hooked up properly because it does work on iOS 8, but it consistently...

how to use JsonArray out of Queue

ios,objective-c,swift,ios7,xcode6
let user = "Pep" let Password = "password" let urlPath: String = "http://www.theclubgate.com/mobileapp/login.php" var url: NSURL = NSURL(string: urlPath)! var request1: NSMutableURLRequest = NSMutableURLRequest(URL: url) request1.HTTPMethod = "POST" var stringPost = "password=\(user)&page_type=login&emailoruser=\(Password)" let data = stringPost.dataUsingEncoding(NSUTF8StringEncoding) request1.timeoutInterval = 60 request1.HTTPBody=data request1.HTTPShouldHandleCookies=false let queue:NSOperationQueue = NSOperationQueue()...

Presenting a view controller triggers UIApplicationDidChangeStatusBarOrientationNotification

ios,objective-c,iphone,ios7,ios8
I've got a universal app that supports both iPad and iPhone, and on the iPhone it supports UIInterfaceOrientationPortraitUpsideDown. When I run the app on an iPhone, then rotate the device to UIInterfaceOrientationPortraitUpsideDown, then modally present a view controller like this: UIViewController* vc = [[UIViewController alloc] initWithNibName:nil bundle:nil]; UINavigationController* navigationController =...

save multiple recording audio files and fetch all recording audios

ios,objective-c,ios7,ios8
I am working on audio recording using AVAudiofoundation,audio is storing and playing properly, But my problem is i have to record multiple audios and i have to show that in table, Now i am getting one url address only. please help me to find the solution. This button is showing...

Autolayout works great on iOS 8, crashes on iOS 7

ios,ios7,ios8,autolayout
I have an issue where a screen with autolayout that works great on iOS 8 - but crashes on iOS 7. All subviews are configured in the XIB. The error message is: Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view. Does the constraint reference...

Using Realm with Swift on iOS 7

ios,swift,ios7,realm
I have an app written in Swift that supports iOS 7. I want to use Realm for my database, but according to their documentation the Swift library supports iOS 8 only. I don't want to write Objective-C code in my app. Is there any way around this? ...

iOS : How to test app on real device without spend $99 buying an account[using Xcode7] [on hold]

ios,xcode,ios7,apple,xcode7
I am a new iOS developer. I am not rich , I wonder can I test my app on real device without spending $99 buying an account? Update I mean how to use Xcode7 to do this ? (step-by-step tutorial will be better Thx!)...

UIScrollView with Autolayout has different size in iOS 7 and iOS 8

ios7,uiscrollview,ios8,autolayout,frame
its simple. in Xcode 6 I add an scrollView to to the view which covers entire screen. add constraints like this: then add a contentView in the scrollView: then add a sample label: the problem is here when I run it on device with iOS 8: the scrollview width is...

view frame does not move down 20px (height of the statusbar)

ios,iphone,ios7,ios8
I used the code below to present vViewController1 @property (retain,nonatomic) ViewController1 *vViewController1; ... push vViewController1 from rootViewController [self.navigationController pushViewController:vViewController1 animated:NO]; Viewcontroller1's viewWillAppear - (void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) { CGRect screen = [[UIScreen mainScreen] bounds]; if (self.navigationController) { CGRect frame =...

nav bar nonresponsive after UIImagePickerController dismissed

ios7,uinavigationcontroller,uinavigationbar,uiimagepickercontroller
On iOS 7 only, the navigation bar in my app does not respond to any touches after a UIImagePickerController is used and then dismissed (whether a pic has been selected or not). The screen below the navigation bar functions as normal, but it is now impossible to navigate Back in...

Facebook invite people for my app from user friend list

ios,iphone,facebook,facebook-graph-api,ios7
I was using ios friend request dialog from facebook to send invitation to user for my app. After facebook announced closing of their API it stopped working, Does anyone have an idea how to invite people for application for ios.

Showing leaderboard crashes app because showViewController isn't supported

ios,swift,ios7,ios8,game-center-leaderboard
What is the right way to present Game Center leaderboards in iOS 7? The code below crashes on showViewController because it only supports iOS 8. Other Stack Overflow posts suggest using presentViewController for iOS 7, but that only shows a blank leaderboard. func showLeaderboards() { // User logged into GameCenter?...

UICollectionView received layout attributes for a cell in ios 7

ios,objective-c,ios7,uicollectionview
I'm using custom UICollectionView on my app. However, I have a problem that make my app crash. The log for the crash: Note: This bug doesn't occur on iOS 8 2015-05-29 11:49:26.316 app9to5[1834:607] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView recieved layout attributes for a cell with an...

How to render a Button on center of the screen?

ios,objective-c,ios7,ios8
I am using Google Sign In for my application and by default when it renders, it looks like as attached I looked around to see how to add constraints programmatically so that depending on the size of the screen the button lands up on the center of screen, so my...

Background Fetch iOS - Terminated Apps

ios,ios7,background,background-task,background-fetch
I think this might be answered quiet a few time, but still there are some unknown cases that I wanted to clarify. I have been looking at Background Fetch API for one of my iOS application. I learned from several articles that fetchNewDataWithCompletionHandler will get called when OS decides to...

iOS 8 causes strange back box on initial view

ios,ios7,ios8
An existing application that has been upgraded from iOS 5->6->7 and now 8. On the initial view shown I have a strange black rectangle appearing, does anyone know why? I have included screen shots from iOS 7 and iOS 8. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; loginWindow = [[ViewController...

Count number of objects of class

ios,objective-c,iphone,ios7
I have declared a Recipe class and create 16 objects manually.In my application one object is my one row. so i need to return no of rows in method numberOfRowsInSection How can I return the no of objects that Recipe class have Here is my view controller.m file - (void)viewDidLoad...

in app purchase in iOS using parse and objective-C

ios,objective-c,ios7,parse.com,ios8
I want to implement in app purchase in iOS using parse.com and objective-C.I've searched over the internet but nothing find helpful even I've not any way to start to try still. Please, help me to implement it. many Thanks in advance