FAQ Database Discussion Community


Obj-C, changing autolayout at runtime, woes

ios,objective-c,cocoa-touch,autolayout,ios7.1
I'm trying try hide table view and move a button up the screen, which is different to my autolayout setup. Basically, I have a free version of my app where I hide things, then if they purchase I need to set the constraints back to those in interface builder. I...

Highlight UIBarButtonItem like iOS7.1 calendar - already tried setBackgroundImage

ios,ios8,calendar,uibarbuttonitem,ios7.1
I'm trying to make a UIBarButtonItem behave like the "view mode" button in the iOS 7 calendar app. When tapped it becomes highlighted and stays this way until it's tapped again. Example image (can't embed images yet, sorry) I have already tried setting the BackgroundImage property to a image with...

EXC_BAD_ACCESS Code 2 on CCCrypt

ios,encryption,ios7.1,des
I am trying to use DES encryption to encrypt passwords (Don't ask why DES, I know it's less secure). I am doing it for the first time in iOS, thus had to rely on another post about how to do it. When I run the encryption it returns null, same...

How to make my tabBar icon to show and tinted

ios,iphone,ios7.1,uitabbaritem
I'm trying to design tab bar icons for an iOS 7 app, so I followed the HIG and I draw a 76x76 401px in white colour and transparent background .png icon that I imported successfully in my project. Then I selected it on the attribute inspector and successfully appeared in...

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...

iOS 7.1 Simulator not downloading

ios-simulator,osx-yosemite,ios7.1,xcode6.1
I use OS X Yosemite 10.10.2, Xcode 6.1. I want to download iOS 7.1 simulator, but the simulator stuck to download ...

Message Sending failed in Multipeer Connectivity in ios7

ios,iphone,ios-simulator,ios7.1,multipeer-connectivity
I want to make a GroupChat application using Multipeer Connectivity Framework. Al first , I initialize the session by this code self.peerID =[[MCPeerID alloc] initWithDisplayName:[UIDevice currentDevice].name]; self.session = [[MCSession alloc] initWithPeer:self.peerID]; self.session.delegate =self; Then I try to send message with all connected peer devices by this following code. NSData *data...

Xcode 6 ViewController content is smaller than the simulator screen

objective-c,iphone,storyboard,ios7.1,xcode6.1.1
i'm developing app for both IOS7 & IOS8, and using storyBoard with size classes enabled. app works fine in all simulators from iPhone 4s IOS7 to iPhone 6+ but the viewController is smaller than the screen in iPhone 5 with iOS7 app supports different orientations, i tried and canceled orientations...

BLE-Takes too much time while sending data from ios 7.1 to ios 8 - Transfer speed

ios8,bluetooth-lowenergy,core-bluetooth,ios7.1,ios-bluetooth
I Have a strange issue. I am developing an app in which i am sending Chunks in 20-20 bytes.. Everything is working fine. When i am sending Bytes data from iOS 8 to iOS 8 device it take around 4-5 second to transfer from one device to another, but my...

iOS Today Widget will not install on iPhone 4 running iOS 7.1, but works on other devices

xcode,ios7.1,today-extension
Just created a Today Widget using XCODE 6.3.1 and have it working on a MINI running iOS 8.3. When we try and install it on an iPhone 4 running iOS 7.1, it does not install or run and XCODE reports "Finished Running" with no errors etc. We will be checking...

calendar.component and unrecognized selector sent to instance error in my iOS app (Swift)

ios,swift,uiwebview,ios7.1,nscalendar
I am building an iOS application using Swift in which, I have a UIWebView that invokes the ViewController to have it perform certtain actions. So the ViewController performs a series of actions and one of them is to get determine what day of the week it its. Using the following...