I suppose you just want to select image by table view.
This is selection table view.
And this is detail view.
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
CMD=`basename $0` | |
echo "usage: ${CMD} projectname" | |
exit 1 | |
fi | |
PROJECT_NAME=$1 |
#!/bin/sh | |
PROJECT_TEMPLATE_PATH=${HOME}/google-cloud-sdk/platform/google_appengine/new_project_template | |
if [ $# -eq 0 ]; then | |
CMD=`basename $0` | |
echo "usage: ${CMD} projectname" | |
exit 1 | |
fi |
There is View-independent value keeping tool. You can use:
[[NSUserDefaults standardUserDefaults]setObject:<#(id)#> forKey:<#(NSString *)#>]
For example, you inputs strings or datas in A view, you can store them in above variables. And then, in B view, you can use them by below code:
[[NSUserDefaults standardUserDefaults]objectOrKey:<#(NSString *)#>]
These are a example of NSUserdefaults data using:
##Convert GMT to IST in iOS
The code below convert GMT to IST.
NSString *inDateStr = @"2000/01/02 03:04:05";
NSString *s = @"yyyy/MM/dd HH:mm:ss";
// about input date(GMT)
NSDateFormatter *inDateFormatter = [[NSDateFormatter alloc] init];
##Setting progress of ProgressView while parsing XML | |
First, count the number of lines. | |
NSError *error = nil; | |
NSString *xmlFileString = [NSString stringWithContentsOfURL:url | |
encoding:NSUTF8StringEncoding error:&error]; | |
_totalLines = [xmlFileString componentsSeparatedByString:@"\n"].count; | |
Then, catch the progress in delegate method block. For example: |