background preloader

Exemple interessant

Facebook Twitter

Design for Facebook authentication in an iOS app that also accesses a secured web service. Cocoa - Constants in Objective C. On SSL Pinning for Cocoa [Touch] — Secure Mac Programming. Moxie Marlinspike, recently-acquired security boffin at Twitter, blogged about SSL pinning.

On SSL Pinning for Cocoa [Touch] — Secure Mac Programming

The summary is that relying on the CA trust model to validate SSL certificates introduces some risk into using an app – there are hundreds of trusted roots in an operating system like iOS, and you don’t necessarily want to trust all (or even any) of the keyholders. Changing the text color of a grouped UITableView’s section header « Blog. The concept was pretty simple. To change the textColor of the section headerView of a tableView, you just implement the following optional delegate method in your table view’s delegate: - (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section In that method, all you have to do is create a UIView with a UILabel and the text you want.

However, recreating the look and feel of the default grouped UITableView took a lot of tweaking. Resize a UIImage the right way — Trevor’s Bike Shed. When deadlines loom, even skilled and experienced programmers can get a little sloppy.

Resize a UIImage the right way — Trevor’s Bike Shed

The pressure to ship may cause them to cut corners and look for a quick and easy solution, even if that solution is sure to cause trouble later on. Eventually, their coding style devolves into copy and paste programming, a lamentable tactic that involves cherry-picking snippets of code from a past project and putting them to use in the current one. Of course, the proper solution is to factor out the code into some kind of reusable library, but due to time constraints, it’s simply duplicated wherever it’s needed. NSPredicate predicateWithBlock & bindings - wannabegeek. Since Mac 10.6 and iOS 4.0 NSPredicate has supported a method predicateWithBlock.

NSPredicate predicateWithBlock & bindings - wannabegeek

I looks to be a pretty commonly used method, but I could find no examples and only limited documentation on the bindings dictionary argument to the block method. + (NSPredicate *)predicateWithBlock:(BOOL (^)(id evaluatedObject, NSDictionary *bindings))block If you wanted to just to a slightly more complex search than predicateWithFormat can provide. UITableViewCell from a NIB file. Feb 12, 2009 by Bill Dudney I have had several questions recently on how to use Interface Builder to create table view cells.

UITableViewCell from a NIB file

Showing a "Loading..." message over the iPhone keyboard. Introduction "Loading...

Showing a "Loading..." message over the iPhone keyboard

" messages When waiting for data loaded from the internet, many iPhone applications use a mostly black, semi-transparent view to block the display. Most use a basic "spinner" (UIActivityIndicatorView) to reassure the user that the application is still running, frequently accompanied by "Loading... " text. Despite the prevalence of this type of loading message, it is not a standard control and must be constructed manually. Finding the keyboard Apple give no methods to locate the keyboard or even the current first responder in an iPhone application. The sample application The sample LoadingView application in this post can display the following two types of loading window: A full-window loading message and a keyboard-only loading message. The sample application doesn't actually load anything. Open Source iPhone App Store Apps.

Welcome to the sixth iteration of the open source iPhone and iPad apps list.

Open Source iPhone App Store Apps

A For those that have seen similar listings on other sites using the exact wordings, and links below welcome to the source for the original list. Also included are some open source iPad apps, and universal open source iOS apps. It can be tough to learn how to develop, especially when it comes to finding complete examples. That’s why I put this list together. Each of these open source iPhone apps is not just open source, but has been in the app store, and all but one are in there right now. Last Update: 4/11/2014 Before going on to the apps, please share these open source iOS apps with your Twitter followers by clicking here. Here is the open source iphone app list in alphabetical order: Connect app to Facebook.

Parsing URL. The Most Useful Objective-C Code I’ve Ever Written « Vincent Gable’s Blog. Actually, it’s the most useful code I’ve extended; credit for the core idea goes to Dave Dribin with his Handy NSString Conversion Macro.

The Most Useful Objective-C Code I’ve Ever Written « Vincent Gable’s Blog

LOG_EXPR(x) is a macro that prints out x, no matter what type x is, without having to worry about format-strings (and related crashes from eg. printing a C-string the same way as an NSString). It works on Mac OS X and iOS. Here are some examples, LOG_EXPR(self.window.screen); self.window.screen = <UIScreen: 0x6d20780; bounds = {{0, 0}, {320, 480}}; mode = <UIScreenMode: 0x6d20c50; size = 320.000000 x 480.000000>> LOG_EXPR(self.tabBarController.viewControllers); Call apps from url. Many app-related tasks depend on the type of app you are trying to create.

call apps from url

This chapter shows you how to implement some of the common behaviors found in iOS apps. Configuring Your App to Support iPhone 5 Apps linked against iOS 6 and later should be prepared to support the larger screen size of iPhone 5 and iPod touch (5th generation) devices.