Skip to main content

Reflection image Demo

//Yo just pass the label obj to the function this will convert into image and you just transform the image

-(UIImage *)grabImageFromView: (UIView *) viewToGrab {
     
       //UITextView *viewToGrab=[[UITextView alloc]initWithFrame:self.view.bounds];
       UIGraphicsBeginImageContext(viewToGrab.bounds.size);
     
       [[viewToGrab layer] renderInContext:UIGraphicsGetCurrentContext()];
       UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
       UIGraphicsEndImageContext();
       return viewImage;
}



use this link to reflection on image:

http://developer.apple.com/library/ios/#samplecode/Reflection/Listings/MyViewController_m.html#//apple_ref/doc/uid/DTS40008063-MyViewController_m-DontLinkElementID_6 

Comments

Popular posts from this blog

iOS9 iTune Upload Error : Invalid Bundle. iPad Multitasking support requires launch story board in bundle

1. Add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES 2. This will fix one more issue that is coming at the time of iTune upload Invalid Bundle. iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. If your application only using single orientation then use the above keyword in info.plist

Google Search API

Place Search API : Authentication :   https://developers.google.com/places/documentation/ Below detail coming from above link Need to first register for the API key then you are able to use below link services: The Google Places API uses an API key to identify your application. API keys are managed through the  Google APIs Console . You'll need your own server API key  before you can begin using the API. To activate the Places API and create your key: Visit the  Google APIs Console  and log in with your Google account. A default project called  API Project  is created for you when you first log in to the APIs Console. You can use the project, or create a new one by clicking the  API Project  button at the top of the window and selecting  Create .  Google Maps API for Work  customers must use the API project created for them as part of their  Google Places API for Work  purchase. Click the  Serv...