This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
NSString *postTitle = [NSString stringWithFormat:@"<H1>%@</H1>", | |
post.title]; | |
NSString *html = [postTitle stringByAppendingString:post.description]; | |
[postBody loadHTMLString:html baseURL:nil]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *URL = [NSURL URLWithString: [self.url stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]]; | |
NSString *html = [NSString stringWithContentsOfURL:URL encoding:NSUTF8StringEncoding error:nil]; | |
[self.webView loadHTMLString:html baseURL:Nil]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CollectionViewController.h" | |
#import "CollectionViewCell.h" | |
#import "DetailViewController.h" | |
#import "NSDate+NVTimeAgo.h" | |
#import "UIImageView+AFNetworking.h" | |
@interface CollectionViewController () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CollectionViewController.h" | |
#import "CollectionViewCell.h" | |
#import "NSDate+NVTimeAgo.h" | |
#import <SDWebImage/UIImageView+WebCache.h> | |
@interface CollectionViewController () | |
{ | |
NSUInteger currentIndex; | |
MWFeedInfo *feedInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NNPDetailViewController.h" | |
@interface NNPDetailViewController () | |
- (void)configureView; | |
- (void)setCompletedImage:(NSInteger)completed; | |
- (void)updateToDoObject:(ToDo *)object; | |
@property (weak, nonatomic) IBOutlet UIDatePicker *reminderDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create connection | |
$con=mysqli_connect("localhost","username","password","dbname"); | |
// Check connection | |
if (mysqli_connect_errno()) | |
{ | |
echo "Failed to connect to MySQL: " . mysqli_connect_error(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
#import "NNPMasterViewController.h" | |
@interface ViewController () | |
{ | |
NSInteger success; | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface NNPMasterViewController : UITableViewController | |
{ | |
NSInteger item; | |
} | |
@property (assign,nonatomic) NSInteger item; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "MasterViewController.h" | |
#import "JSONModelLib.h" | |
#import "KivaFeed.h" | |
@interface MasterViewController () { | |
KivaFeed* _feed; | |
} | |
@end |
OlderNewer