iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

OpenCV with xcode error: Undefined symbols for architecture x86_64:

I’m trying to install opencv and use it with xCode for making application in C++. I installed it using macports and follow many tutorials to do it. I have done the linking too in xcode but there is problems that some function dosen’t work. it give an error like Undefined symbols for architecture x86_64: cv::resize(cv::_InputArray […]

How to loop through Array<Dictionary<String,String>> using Swift

Give me one Example and explanation for “loop through array<Dictionary<String,String>>using swift…

Static library and internationalization

I have a question regarding static libraries. I need to localize some text inside my library. So I created a bundle where I put my different localized files. Then, I created a function like this : NSString *MyLocalizedString(NSString* key, NSString* comment) { static NSBundle* bundle = nil; if (!bundle) { NSString* path = [[[NSBundle mainBundle] […]

XCode 7.3.1 Update Not Installing

It looks like XCode came out with a new update. This issue seems to be persistent where the iTunes Store does not render the update even though it posts it in the “Updates Installed in Last 30 Days” section. After I restart, I am then prompted to update again even though I have already done […]

Repeating UILocalNotifications with Gaps

I have a notification that needs to repeat daily. It can be turned off by the user for specific days. Is there any easy way to accomplish this scenario using the UILocalNotification framework? Take an example of a notification that repeats daily starting on March 1st, 2011, and is disabled for March 7th, and March […]

xCode – UIVisualEffectView animating

I’ve an issue while animating a VisualEffetView. Here is the code where I declare it. UIBlurEffect* blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; effectView = [[UIVisualEffectView alloc] initWithEffect:blur]; effectView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; effectView.frame = self.bounds; self.layer.borderWidth = 1; [self addSubview:effectView]; When I animate the superview to make it grow, the Visual Effect follow the animation of the […]

Unable to build mercurial on OSX – Python.h not found

For what I’ve read I need Python-Dev, how do I install it on OSX? I think the problem I have, is, my Xcode was not properly installed, and I don’t have the paths where I should. This previous question: Where is gcc on OSX? I have installed Xcode already Was about I couldn’t find gcc, […]

UITableViewCell from a custom .XIB file doesn't create outlets

Update 2: Long story short, I was being silly (and, in my defense, not properly educated) about this. It works now. My questions have derailed from the original topic a little bit, but that’s because I wasn’t understanding what was going on in my application. I would like to close the question with one last […]

Creating retina screenshot programmatically resulting in non retina image

I am trying to take a retina screenshot programmatically and I have tried every approach found online, but I was not able to get the screenshot to be retina. I understand the following private API: UIGetScreenImage(); cannot be used as Apple will reject your app. However, this method returns exactly what I need (640×960 screenshot […]

Getting (default) value from settings bundle

I have an IOS5 project. I have added a settings bundle to my project and added some settings to it. I set properties of ‘host_ip’: <dict> <key>AutocapitalizationType</key> <string>None</string> <key>AutocorrectionType</key> <string>No</string> <key>DefaultValue</key> <string>http://localhost</string> <key>IsSecure</key> <false/> <key>Key</key> <string>host_ip</string> <key>KeyboardType</key> <string>URL</string> <key>Title</key> <string>Host</string> <key>Type</key> <string>PSTextFieldSpecifier</string> </dict> I try to read value like this: NSUserDefaults *userDefaults =[NSUserDefaults standardUserDefaults]; NSString […]