Skip to content

Instantly share code, notes, and snippets.

View anuragbhai's full-sized avatar

AnuragSharma anuragbhai

View GitHub Profile
//
// ViewController.swift
// project
import UIKit
import Alamofire
import SwiftyJSON
import Haneke
class magazineViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, NSURLSessionDelegate, UIDocumentInteractionControllerDelegate, NSURLSessionTaskDelegate {
@vinhnx
vinhnx / remove-bottom-line-navbar.md
Last active June 14, 2022 02:32
remove 1px bottom line of the navigation bar

If you just want to use a solid navigation bar color and have set this up in your storyboard, use this code in your AppDelegate class to remove the 1 pixel border via the appearance proxy:

Objective-C

[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init]
                                  forBarPosition:UIBarPositionAny
                                      barMetrics:UIBarMetricsDefault];

[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];