Showing posts with label iOS. Show all posts
Showing posts with label iOS. Show all posts

Friday, September 4, 2020

TestFlight Usage

 https://apps.apple.com/us/app/testflight/


Test Flight used for BETA testing of your app before App Store submission.


It will be uploaded from Xcode using the Distribution Profile. It will go Apple review, turn around time will take min 2days for First Version upload, subsequent build no. increase will be auto approved sooner. Any further increase in version will take 2 days for sure.

 (E.g) 1. 0 (1) - 2days

1.0 (3), (4), .. will be quicker

1.1 / 2.0 … will take time for review.


Any uploaded Builds will go auto expire for Build Shared in the Test Flight 90days (as on). But caveat is, those who downloaded and using the build will not break, it will still work without issue. Any new builds posted will give Notifications to the user, but not force to upgrade from TestFlight.


If we are plan to force upgrade, we need to right the logic in the Service on launch and alert the user for upgrade, no other choice with Expiry build with test flight.


Above are experience with my project.

Thursday, October 29, 2015

iOS Date and Time format details


Date Format Options are as follows:
Now you want all the string formats that can be used with NSDateFormatter. Here is that
a: AM/PM
A: 0~86399999 (Millisecond of Day)
c/cc: 1~7 (Day of Week)
ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
d: 1~31 (0 padded Day of Month)
D: 1~366 (0 padded Day of Year)
e: 1~7 (0 padded Day of Week)
E~EEE: Sun/Mon/Tue/Wed/Thu/Fri/Sat
EEEE: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
F: 1~5 (0 padded Week of Month, first day of week = Monday)
g: Julian Day Number (number of days since 4713 BC January 1)
G~GGG: BC/AD (Era Designator Abbreviated)
GGGG: Before Christ/Anno Domini
h: 1~12 (0 padded Hour (12hr))
H: 0~23 (0 padded Hour (24hr))
k: 1~24 (0 padded Hour (24hr)
K: 0~11 (0 padded Hour (12hr))
L/LL: 1~12 (0 padded Month)
LLL: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
LLLL: January/February/March/April/May/June/July/August/September/October/November/December
m: 0~59 (0 padded Minute)
M/MM: 1~12 (0 padded Month)
MMM: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
MMMM: January/February/March/April/May/June/July/August/September/October/November/December
q/qq: 1~4 (0 padded Quarter)
qqq: Q1/Q2/Q3/Q4
qqqq: 1st quarter/2nd quarter/3rd quarter/4th quarter
Q/QQ: 1~4 (0 padded Quarter)
QQQ: Q1/Q2/Q3/Q4
QQQQ: 1st quarter/2nd quarter/3rd quarter/4th quarter
s: 0~59 (0 padded Second)
S: (rounded Sub-Second)
u: (0 padded Year)
v~vvv: (General GMT Timezone Abbreviation)
vvvv: (General GMT Timezone Name)
w: 1~53 (0 padded Week of Year, 1st day of week = Sunday, NB: 1st week of year starts from the last Sunday of last year)
W: 1~5 (0 padded Week of Month, 1st day of week = Sunday)
y/yyyy: (Full Year)
yy/yyy: (2 Digits Year)
Y/YYYY: (Full Year, starting from the Sunday of the 1st week of year)
YY/YYY: (2 Digits Year, starting from the Sunday of the 1st week of year)
z~zzz: (Specific GMT Timezone Abbreviation)
zzzz: (Specific GMT Timezone Name)

Z: +0000 (RFC 822 Timezone)

Sunday, March 18, 2012

Retina image handling in iOS

Ref: http://www.oopstechblog.com/?p=2151

Thursday, December 22, 2011

How to validate the iOS device has FaceTime feature

We can test by device iOS version will support this feature or not. But, we can upgrade the iOS version to 3G devices also, it doesn't have Front camera. So, the simple way to test the application is given below, it help us to validate the feature.

BOOL val = [[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString: @"facetime://5555555555"]];

NSLog((val)?@"Yes":@"NO");

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:(val)?@"Yes":@"No" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];

[alert show];
[alert release];

if(val){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"facetime://5555555555"]];
}

Wednesday, December 21, 2011

Customizing the TabBar images in iOS



Here is the sample code for you how to customize the tabbar in iphone. It will do with four stripe of images.




- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
NSUInteger selectedIndex = tabBarController.selectedIndex;

NSString *selectedImage;

switch (selectedIndex) {
case 0:
selectedImage = @"menu_selected.png";
break;
case 1:
selectedImage = @"location_selected.png";
break;
case 2:
selectedImage = @"offers_selected.png";
break;
case 3:
selectedImage = @"reviews_selected.png";
break;
default:
break;
}


UIImage *image = [UIImage imageNamed:selectedImage];
UIImageView *imageView = [[ UIImageView alloc ] initWithFrame:CGRectMake(0,440,320,40) ];
imageView.image = image;
[self.tabBarController.view addSubview:imageView];

}

Added: Source will do SKTabBar usage

Source: download

Friday, December 16, 2011

Custom ScrollableTabBar (UIButtons) for iOS


One of my Project I need to build scrollable buttons/tab bar in the page. So, idea comes with this solutions.

How to call the SKTabBar class:

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {

CGSize buttonSize = CGSizeMake(50,60);

SKTabBar *skTB =[[SKTabBar alloc]initWithFrame:CGRectMake(0,100,320,100)];
[skTB setBackgroundColor:[UIColor grayColor]];
[skTB setShowsVerticalScrollIndicator:NO];
[skTB setSkDelegate:self];
[skTB loadTabs:buttonSize numberOfTabs:36];
[self.view addSubview:skTB];

[super viewDidLoad];
}

-(void)getSelectedButtonTab:(id)sender{
UIButton *btn = (UIButton*)sender;
NSLog(@"%d",btn.tag);
}

Updated:

Added animations code snippets to show the zoomed view of selected button on selection.

Source: download

Thursday, November 24, 2011

Building multiple iPhone targets in XCode

This is more helpful now for creating multiple version of same product by only skin change or even lighter change in functionality.

Other case, if we are going to release 'lite' and 'full' version of the same product. We can customize our targets with the required resource based on the release type.

Credit:
http://www.pacificspirit.com/blog/2009/01/27/building_for_multiple_iphone_targets_in_xcode

iOS App Store Package (.ipa) option got disabled after archive

This happens when your build produces more than a single target: say, an app and a library....

Credit:
http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

Related:
http://iphonedevelopertips.com/xcode/distribute-ad-hoc-applications-over-the-air-ota.html

Tuesday, November 22, 2011

hudson integration for mac

Credits:
  • installing hudson : http://priyanka-tyagi.blogspot.com/2011/01/installing-hudson-on-mac-os-x-snow.html
  • configuring hudson : http://www.manicwave.com/blog/2010/03/01/that-feels-better-cocoa-hudson-and-running-green/
  • auto startup in mac (if req): http://jrenard.info/blog/a-quick-but-working-startup-item-for-hudson-for-mac-os-x.html
  • command line parameter for xcodebuild: http://www.manpagez.com/man/1/xcodebuild/

internationalization and localization

Credit:

http://iphonedevelopertips.com/general/resources-for-internationalization-and-localization.html

iOS commenting style

Credit:

http://iphonedevelopertips.com/objective-c/objective-c-comment-styles.html