• Frank Tyger

    Doing what you like is freedom. Liking what you do is happiness.

Blog Archives

How to using app “Live Now”

– Anyone with a YouTube channel can create a live video event to share with the world. You also can use custom RTMP to go live.

– Using this app does not mean you can for instance broadcast concerts of your favorite bands without permission, so please respect the YouTube rules concerning to what you are and are not allowed to stream.

Please refer FAQ here http://hoangnn.com/livenow/

Available on iTunes https://itunes.apple.com/us/app/live-now-stream-live-video/id1097020890?mt=8

Read more →

XCode 7 crashes when selecting the main storyboard or a xib

To fix this problem:
1/ open a Finder window and navigate to your project
2/ right-click on the .xcodeproj (and .xcworkspace if using pod) file (it’s a package actually)
3/ select Show Package Contents
4/ a new window appears
5/ delete a folder called xcuserdata
Read more →

Missing iOS Distribution signing identity for … Xcode can request one for you.

How to fix :

Failed to locate or generate matching signing assets
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues.
Missing iOS Distribution signing identity for ... Xcode can request one for you.

I also faced the same issue today. The following steps fixed my issue.

1/ Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
2/ Double-click to install to Keychain.
3/ Then in Keychain, Select View -> “Show Expired Certificates” in Keychain app. It will list all the expired certifcates.
4/ Delete “Apple Worldwide Developer Relations Certificate Authority certificates” from “login” tab
5/ And also delete it from “System” tab.

Now you are ready go.

Read more →

Color-fill UIImage programmatically in iOS7/iOS8/iOS9

With iOS7/iOS8/iOS9 you can color-fill a black-transparent png file, using the imageWithRenderingMode: method and the tintColor property.|

The iOS7/iOS8/iOS9: creates and returns a new image object with a specified rendering mode.

The rendering mode to use, is the UIImageRenderingModeAlwaysTemplate that draw the image as a template image, ignoring its color information.

Finally, the tintColor is the fill UIColor.
So, You can color-fill your png.

UIImage *img = [UIImage imageNamed:@"smile.png"];
self.imgOriginal.image = img;
self.imgColorFill.image = [img imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
self.imgColorFill.tintColor = [UIColor colorWithRed:0.98 green:0.47 blue:0 alpha:1];


Read more →

How to push notifications ios

Development Phase:

Step 1: Create Certificate .pem from Certificate .p12
Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12

Step 2: Create Key .pem from Key .p12
Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12

Read more →

php 7 what’s new

2015 has been an important year for PHP. Eleven years after its 5.0 release, a new major version is finally coming our way! PHP 7 is scheduled for release before the end of the year, bringing many new language features and an impressive performance boost.

But how will this impact your current PHP codebase? What really changed? How safe is it to update? This post will answer these questions and give you a taste of what’s to come with PHP 7

Read more →

IOS Restoring Purchased Products

Users restore transactions to maintain access to content they’ve already purchased. For example, when they upgrade to a new phone, they don’t lose all of the items they purchased on the old phone. Include some mechanism in your app to let the user restore their purchases, such as a Restore Purchases button. Restoring purchases prompts for the user’s App Store credentials, which interrupts the flow of your app: because of this, don’t automatically restore purchases, especially not every time your app is launched.

If you submit app to store without button “Restore Purchase” maybe reject

Read more →