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
In swift3 create one segue -add identifier -add and set in segue(storyboard) custom storyboard class from cocoatouch file -In custom class override perform() | |
'override func perform() { | |
let sourceViewController = self.source | |
let destinationController = self.destination | |
let navigationController = sourceViewController.navigationController | |
// Pop to root view controller (not animated) before pushing | |
if self.identifier == "your identifier"{ | |
navigationController?.popViewController(animated: false) | |
navigationController?.pushViewController(destinationController, animated: true) |
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
add ```UIScrollViewDelegate``` in tableview/collectionview | |
``` var isDataLoading:Bool=false | |
var pageNo:Int=1 | |
var limit:Int=0 | |
var offset:Int=0 | |
var connectionCount:Int=0``` | |
```override method func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) { | |
if scrollView == collectionView{ |
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
// | |
// InviteFrdsController.swift | |
import UIKit | |
import Contacts | |
import AlamofireImage | |
import MessageUI | |
class InviteFrdsController: UIViewController,UITableViewDelegate,UITableViewDataSource,MFMessageComposeViewControllerDelegate,UIScrollViewDelegate | |
{ |
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
/* | |
* Copyright 2016 Google Inc. | |
* | |
* 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 | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
add this in gradle | |
ValidFragment Error was beacause of fragment instance was not static in payumoney jar. | |
The below one only suppresses warning and we can build it. | |
android{ | |
lintOptions { | |
checkReleaseBuilds false | |
abortOnError false | |
} | |
} |
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 android.util.Log; | |
import com.android.sustlabs.pojo.BinaryObj; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Set; |
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 android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** | |
* {@link GridLayoutManager} extension which introduces workaround for focus finding bug when | |
* navigating with dpad. | |
* | |
* @see <a href="http://stackoverflow.com/questions/31596801/recyclerview-focus-scrolling">http://stackoverflow.com/questions/31596801/recyclerview-focus-scrolling</a> |
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
public class GroupViewHolder extends MainViewHolder { | |
@InjectView ( R.id.groupTitle ) | |
TextView mTitle; | |
@InjectView ( R.id.groupContent ) | |
TextView mContent; | |
public GroupViewHolder ( View itemView ) { | |
super ( itemView ); |
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
Epson FX Printer Codes | |
Printer Operation: | |
Decimal ASCII Description | |
7 BEL Beeper | |
17 DC1 Select printer | |
19 DC3 Deselect printer | |
27 25 48 ESC EM 0 Turn cut sheet feeder control off | |
27 25 52 ESC EM 4 Turn cut sheet feeder control on | |
27 56 ESC 8 Disable paper out sensor |
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
@interface NSWindow (FRBExtra) | |
- (NSImage *)windowImage; | |
- (CGImageRef)windowImageShot; | |
@end |
OlderNewer