In Xcode 8.3.2 Swift 3.1, I have a UITableView where each row contains a label and a switch. I can manage the switches as a group (process the array), but what I would really like is to have a ValueChanged event fire in the parent UIViewController wh
I have CollectionView in TableView. everything ok but. when I want to navigate my cell to another viewController I got error func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath){ let storyboard = UISt
I'm working on a iPhone App and have a little question. I have a function and want to call this function in my viewDidLoad-function. I have tried this way but I get an error when I want to call the dropPin-function. override func viewDidLoad() { supe
I have declared 4 images in the ViewDidLoad in my ViewController and then hide them with myImage1.hidden = YES;. I was wondering if there was anyway of sending a message from the App Delegate (from within a Switch Case) to the ViewController's ViewDi
for example here is the portion of my code that add values do { let request = NSFetchRequest(entityName: "users") let results = try context.executeFetchRequest(request) if results.count > 0 { for item in results as! [NSManagedObject] { let fN
It seems like the Swift equivalent of dealloc is deinit. However, when you attempt to define the method on a UIViewController, it doesn't behave as you would expect... Setup Create a new Single View project using Xcode 7.0, in either Swift or Objecti
Every time I make an API call to my server to get data, I already know that I have to use the following block to execute UI changing commands because my API call executes in the background thread: dispatch_async(dispatch_get_main_queue(), ^{ //do UI
I have a layout in which I will have 2 UITableViews with custom cells. The second UITableView must be inside the first. My question is: how to delegate second UITableView? Can I delegate both to my ViewController? In that case it will use the same me
I'm started to work at new place as iOS programmer. I joined existing project and got an assignment that i don't really know how to approach. So my problem is this: when you press a button, next window has to have a tab bar with four icons, this mean
When I try to run the program compiles and I don't receive any errors. Everything works as it should except that the image is not showing on the View Controller. Can't figure where why the image is not showing. I appreciate any inputs. Here is my cod
How can I detect clicks on the following UIKit element in Swift, in an Xcode 6 playground? let testLabel = UILabel(frame: CGRectMake(0, 0, 120, 40)) testLabel.text = "My Button" The UILabel class is used just to display text on the screen. Sure
I am using OSX Yoemite and I have visited almost all questions about this on StackOverflow and none of the answers worked... I am currently trying to use the command "pod install" and I am getting this error: /System/Library/Frameworks/Ruby.fram
How to get zip code with auto complete api of google in iOS? I have already tried google place api but it not return zip code So, please any one have solution give me some ideaUsing Google Maps iOS SDK Swift: @IBAction func googleMapsiOSSDKReverseGeo
I am trying to add a CALayer to the bottom part of my UITableViewCell to get a bit of a "shadow" effect. The problem is when the table is scrolled up and off the screen the layer is removed, so when you scroll back down it isn't visible. If you
How to show the user location icon(blue dot) on the top of the map view pin image. Now the user location icon is hidden by the pin image.(below the pin image). How to do this task ?(check screenshot) Is it possible to show the user location icon on t
I have a tutorial for my app, which should display only the first time the app is opened and should be tapped to dismiss. I am initializing a UITapGestureRecognizer in my viewDidLoad: tapper_tut = [[UITapGestureRecognizer alloc] initWithTarget:self a
I have a free version of app. And there is a link to a full version in free app. The link works fine in iOS 6. But in iOS 7 it shows a blank page. Any help is appreciated! The link I use: - (void) getFull { [self hideAnimated]; NSString *iTunesLink =
The applicationDidBecomeActive method gets called when the app became active, is there a way that I can do this method for a certain UIViewController? I know there is viewDidAppear for view controllers but I'm searching for a method that is called wh
I am trying to run my app in the iPad simulator, but I keep getting this error whenever I try to simulate. I've updated everything, some fellow help for an appcelerator noob would be much appreciated. Any thoughts would help. [ERROR] : ** BUILD FAILE
I would like to resize a UITextView when the keyboard shows up but I can't seem to do this. I've created a single view with an UITextView in it. In code, I would like to manually resize the height of this text view. I do this: _textView.translatesAut
I have a set of data that is basically a table of contents First Section First Subsection First Subsection Content A First Subsection Content B Second Subsection Second Subsection Content A Second Subsection Content B Second Section First Subsection
I had checked some apps on iTunes, in supported devices some were showing "Optimized for iPhone 5" & in some it was normal iPhone 5. Is there is differecne between this two. How iTunes will comes to know whether app is optimized for iphone 5
I have an array that gets created in viewWillAppear and the result in the console looks like this data SecArray........... ( ( "<NSIndexPath 0x7f17630> 2 indexes [0, 0]" ), ( "<NSIndexPath 0x7f96430> 2 indexes [1, 0]", &quo
I have followed this tutorial: http://www.shawngrimes.me/2011/04/custom-map-pins-for-mapkit/#comment-193 but I can't add a title and description (see my code here http://pastebin.com/03mDLc9q)You are trying to set name and description as properties o
I need to fill my UIView in drawRect() method with 'reverted polygon' - everything in view is filled with some color except polygon itself. I've got this code to draw a simple polygon: CGContextBeginPath(context); for(int i = 0; i < corners.count; ++
I am having some trouble getting my head around how I can init a class and pass identical init params to multiple instances. I can get it to work with 1 outlet (instance1). But how can I also get it to work with instance 2 without re-writing the vari
we're not talking thousands of rows or anything, although if there was a way to make things scale up that high, I'd love it. I have a table with 27 sections and 180 rows spread across all sections, and the scenario I'm currently getting stuck in is w
Hey I am writing a function that handles favorites within my app, as well as changing the image of the favorite button I want to change the image of a corresponding button in another UIScrollView DoubleScrollLeft. The below code works HOWEVER I get t
I am doing some allocation as self.xyz = [[NSDictionary alloc] init]; Is it a good idea of retaining a property such like that? Or will it be better to do such as: NSDictionary *zzz = [[NSDictionary alloc] init]; self.xyz = zzz; [zzz release]; My con
I have a navigation based app. The root view is a list of items. From this root view you can tap on a table cell to an item's detail view. Or you can go to a form view to create a new item via the 'Add' button in the nav bar. My question is how I can