Skip to content

Instantly share code, notes, and snippets.

View wujun's full-sized avatar

lzwujun wujun

View GitHub Profile
@wujun
wujun / MKNumberBadgeView.h
Created February 21, 2012 06:35
custom badge from Michael F. Kamprath
//
// MKNumberBadgeView.h
//
// Copyright 2009 Michael F. Kamprath
// michael@claireware.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
@wujun
wujun / hello xml
Created February 19, 2012 06:50
parser xml file
- (void)parseData
{
//self.importCardArray = [NSMutableArray arrayWithCapacity:10];
[self.xmlParser setDelegate:self];
self.statusLabel.text= @"Storing the cards to the database...";
BOOL xmlParsingOK = [self.xmlParser parse];
if (xmlParsingOK) {
self.statusLabel.text= @"All entry successfully imported.";
}
else