Tag: objective c

How can I get a list of the available NSFont families?

How can I get a list of the available NSFont families, preferably with the fontName: equivalents.

UITextField “value changed” not firing when field is updated

I have an IBAction that I have connected to a UITextField element in Interface Builder. (Firing on “value changed” event) I also have a UISlider that updates the TextField element automatically when it’s value gets adjusted. When I run my app, the TextField does get updated when I adjust the slider, but the “value changed” […]

“Data Formatters temporarily unavailable…” Error

Possible Duplicate: Program received signal: “0”. Data Formatters temporarily unavailable I am taking above 200 OBShapedButtons on XiB and setting up the background images over there. After that I am taking the image of that particular OBShapedButton and coloring the image and setting it back again as the background of that OBShapedButton. -(void)onTick:(NSTimer *)timer { […]

How to search a UITableView

Right so I know there are about a billion questions on SO about this subject, but they all appear to link to the same old blog posts about implementing a UISearchBar, or Apple docs. What I want to know is, is there a proper tutorial out there for implementing the UISearchDisplayController class to search through […]

How to make Notification Center Widgets (iOS 5)

iOS 5 introduced Notification Center Widgets and I would like to experiment with those widgets and make custom ones (with a Jailbroken device). I couldn’t quite figure out how to make such a widget. The Widgets (WeeApps) are bundles stored in /System/Library/WeeAppPlugins. It would be great if anyone has already writren a guide or could […]

Proper way of saving and loading pictures

I am making a small app where the user can create a game profile, input some data and a picture that can be taken with the camera. I save most of that profile data with the help of NSUserDefaults, but a friend discouraged me from saving the profile image in NSUserDefault. What’s the proper way […]

IOS: Storyboard and side menu as facebook app

How do I create a hidden menu with storyboard and Navigation Controller? Thank you!

Use of external C++ headers in Objective-C

In my iOS project I need to use an external library written in C++. The C++ header files are all in one directory. I’ve added these C++ headers to my Xcode project, and also specified a header search path (in Build Settings). The issue is that these C++ headers include each other using < > […]

Zooming on UIWebView

I have a UIWebView which I’m using to display a variety of content, sometimes HTML and sometimes PDF/Powerpoint/etc (which is all seemingly handled by the same underlying control). What I want to do is harness the underlying UIScrollView (a subview of the UIWebView) to capture the exact perspective of the scroll view and recreate the […]

NSDate detection with NSDataDetector

I tried to get a NSDate from a NSString with UNKNOWN format, So I wrote a function like below -(void)dateFromString:(NSString*)string { NSError *error = NULL; NSDataDetector *detector = [NSDataDetector dataDetectorWithTypes:(NSTextCheckingTypes)NSTextCheckingTypeDate error:&error]; NSArray *matches = [detector matchesInString:string options:0 range:NSMakeRange(0, [string length])]; NSLocale* currentLoc = [NSLocale currentLocale]; for (NSTextCheckingResult *match in matches) { if ([match resultType] == […]