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
/Path/To/fruitstrap -d -b /Path/To/Your_App.app |
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
<video src="video.mov" | |
height="768" width="1024" | |
x-webkit-airplay="deny" > | |
</video> | |
<!-- or --> | |
<embed airplay="deny" | |
src="movie.mov" | |
width=320 |
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
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(screenDidConnect:) | |
name:UIScreenDidConnectNotification | |
object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(screenDidConnect:) | |
name:UIScreenDidDisconnectNotification | |
object: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
@InjectLayout(R.layout.example) | |
public class ExampleActivity extends RobojectActivity { | |
@InjectView(R.id.text_view) | |
private TextView textView; | |
@InjectView(R.id.edit_text) | |
private EditText editText; | |
} |
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
// Set a listener to be invoked when the list should be refreshed. | |
PullToRefreshListView pullToRefreshView = (PullToRefreshListView) findViewById(R.id.pull_to_refresh_listview); | |
pullToRefreshView.setOnRefreshListener(new OnRefreshListener<ListView>() { | |
@Override | |
public void onRefresh(PullToRefreshBase<ListView> refreshView) { | |
// Do work to refresh the list here. | |
new GetDataTask().execute(); | |
} | |
}); |
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
<projectDescription> | |
<name>thoughtsonmobile-testapp</name> | |
<projects/> | |
<buildSpec> | |
<!-- added two adt build commands for full eclipse support --> | |
<buildCommand> | |
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | |
<arguments></arguments> | |
</buildCommand> | |
<buildCommand> |
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
for (id subView in [webView subviews]) { | |
if ([subView respondsToSelector:@selector(flashScrollIndicators)]) { | |
[subView flashScrollIndicators]; | |
} | |
} |
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
EmailComposer.prototype.showEmailComposer = function(subject,body,toRecipients,ccRecipients,bccRecipients,bIsHTML,attachment) { | |
var args = {}; | |
if(toRecipients) | |
args.toRecipients = toRecipients; | |
if(ccRecipients) | |
args.ccRecipients = ccRecipients; | |
if(bccRecipients) | |
args.bccRecipients = bccRecipients; | |
if(subject) | |
args.subject = subject; |
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 MySegueWithCustomAnimation : UIStoryboardSegue | |
@end |
NewerOlder