|Posted by Aman Aggarwal on July 10, 2014 at 3:10 AM||comments (2)|
In this post, i am going to tell you some of the tips and tricks for different scenarios of IOS development.
1. Scale an UIImageView or view
To scale an UIImageView/UIView in IOS we have CGAffineTransformScale with which we can scale our UIImageView/UIView.In this method we will pass current transform of our View and x, y values according to which we want to scale our view. Below is the code chunk that shows how we can use i...Read Full Post »
|Posted by bhanu pratap on April 10, 2014 at 5:25 AM||comments (0)|
// Call for the First Location Latitude & longitude
Place* home = [[Place alloc] init];
home.name = @"Home";
home.description = [appDel.dictionaRY1styLoc valueForKey:@"Dic1PlaceName"];
home.latitude = [[appDel.dictionaRY1styLoc valueForKey:@"Dict1lat"] double...Read Full Post »
|Posted by Alok Upadhyay on December 5, 2013 at 12:35 AM||comments (0)|
I have tested this code with a simple view based application, have added a scroll view in a view controller story board view, referenced it through IBOutlet.
Note: The solution work for landscape/portrait both but one at a time, currently not supporting in autorotation that is landscape to portrait or vice-versa.To test You can check/uncheck landscape portrait setting in project target's device orientation.
@interface ALViewController : U...Read Full Post »
|Posted by VIgnesh4303 on November 30, 2013 at 3:05 AM||comments (0)|
The following were someof the usefull links/questions which will be usefull for developers :Read Full Post »
|Posted by Alok Upadhyay on November 26, 2013 at 1:00 AM||comments (0)|
Instruments tells that there are "misaligned images" which are animated by core animation.
Quartz allows you to draw at fractional pixels (recall that CGPoint takes CGFloats, not NSIntegers), but it's more expensive and tends to create a bit of blurriness. You can't really draw on a fractional pixel, so Quartz has to do anti-aliasing to pull it off. That takes time and certainly would hurt Core Animation/graphics performance.
Quartz will not warn you that you're drawi...Read Full Post »
|Posted by hsiehboi on October 17, 2013 at 10:15 AM||comments (1)|
Hello guys, can anyone help me a bit, I'm be struggling it for a while. My function is to have an advanced search for my app. And the problem is no matter I choose any detail from the advancedDetailVC, it only can pass the data back to "Chef Name" column. It should be eg. When i secected "Dietary 1" it can pass back to the "Dietary Needs", and if i selected "Chef 1 it can pass back to "Chef Name" and if i selected "< 10 mins" it can pass back to the "Prep Time" etc.... I think is the code ...Read Full Post »
|Posted by Nitin Gohel on October 2, 2013 at 7:50 AM||comments (2)|
Recently we got mail from apple like
Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format.- If your application supports the iPhone device family,
you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels.-
If your application supports the iPad device family, you must include square icons of the following dimens...Read Full Post »
|Posted by bhanu pratap on July 27, 2013 at 5:20 AM||comments (2)|
UIDatePicker * datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 44, 0, 0)];
datePicker.datePickerMode = UIDatePickerModeDate;
NSDateFor...Read Full Post »
|Posted by Hercules Hero on July 24, 2013 at 4:35 AM||comments (1)|
Any one who wants UISearch bar like image below:--
Then follow below code.
1)Create UIImage instance and initiate it with white background Image.
2)Set background Image instance to first subview of UISearchBar.
3)Get subview at index 1 that is textField and set its background to nil.
4)...Read Full Post »
|Posted by Hercules Hero on July 23, 2013 at 12:40 AM||comments (1)|
Make instance of UISlider as an outlet to UISlider or any instance of UISlider.Once it has initialized just call setGradient method with slider object and color array you want to set as gradient.
I have instantiated in viewDidLoad method and call gradient set in viewDidAppear method
_slider=[[UISlider alloc] init];
Read Full Post »
|Posted by Hercules Hero on July 16, 2013 at 12:55 AM||comments (1)|
Add any textField to iPhone. Set its delegate And copy paste below method.
Will never cause any problem hiding textFields behind keyboard if they are much closer to bottom of the View.
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
[[NSUserDefaults sta...Read Full Post »
|Posted by VIgnesh4303 on July 8, 2013 at 1:05 AM||comments (0)|
This article focuses specifically on the techniques and tools that will help security professionals understand penetration testing methods for iPhone applications. It attempts to cover the entire application penetration testing methodology on a physical device (running with iOS 5) rather than a simulator.
Background:Since the introduction of the iPhone, Apple has sold more than 110 million iPhones. The smartphone platform has created a new business and companies want to make their servi...Read Full Post »
|Posted by VIgnesh4303 on June 12, 2013 at 3:35 AM||comments (0)|
Hi friends today i wish to share some of the tips which will deal with iphone application testing, As an tester by proffesion i would like to share the following info
1 Accurately reportavailable memory. Many of thenon-reproducible bugs you run into when testing iPhone apps are related tomemory problems. It's critical that youknow and report available free memory before launching an application. In all likelihood, thereproducibility of a crashing iPhone app ...Read Full Post »
|Posted by VIgnesh4303 on May 1, 2013 at 3:55 AM||comments (15)|
This was my first post here,Hope this post will help someone at some stage, Many have wondered why cant we decompile an ipa file to its source Here i share the method which i found the way< The following method was done for Ipa file from itunes
If the IPA file is straight from iTunes/iPhone (without any modification), the code section in the binary (as indicated by the Info.plist) is encrypted with FairPlay (Apple's proprietary DRM). If you are unsure,...Read Full Post »
|Posted by Aman Aggarwal on March 20, 2013 at 5:50 AM||comments (11)|
Most commonly used control in Mobile aplication development is UITableView.Now problem occurs when out Tableview cells contain different layouts apart from predefned.
For e.g. A Tabel Cell layout contains
1. Image on left side.
2. Heading Label on right to image.
3. Another description label just below heading label.
4. To the farmost a button to delete cell.
Now there are two approaches used by most ...Read Full Post »
|Posted by Aman Aggarwal on March 19, 2013 at 4:25 AM||comments (2)|
Recently, one of my colleauge working on ann application where he had to show a custom image in place of pin on MKMapView. He used the image property of MKPinAnnotationView to set custom image rather than a pin.
But as soon as he change the map type to satellite or hybrid, map display pin rather than image. He tried for 2 hours to overcome this problem, that's why i ma sharing this issue so that time can be saved wheenever someone stuck in similar situation. To overcome this problem we ...Read Full Post »
|Posted by Aman Aggarwal on March 18, 2013 at 1:35 AM||comments (1)|
Below is the code snippets which gives ZoomIn ZoomOut like animation effect :
myDonationView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.001, 0.001);
[UIView beginAnimations:nil context:nil];
[UI...Read Full Post »
|Posted by Aman Aggarwal on March 7, 2013 at 5:05 AM||comments (0)|
Today I will write down a code snippets which i found on stackoverflow.com that gave me height of label to be set according to different lengths of strings going to be assigned to label.The code snippets is given below
NSString *theText = myLabel.text;
CGFloat width = myLabel.frame.size.width ;
CGSize theSize = [theText sizeWithFont:myLabel.font constrainedToSize:CGSizeMake(width,MAXFLOAT) lineBreakMode:UILineBreakModeWordWrap];
CGFloat myLabelHeight =...Read Full Post »
|Posted by Aman Aggarwal on March 6, 2013 at 12:05 AM||comments (0)|
In some of our apps, we need user to notify that something new happened to a particular section of the app.Suppose our app has three tabs and one of the tab name is New Offers.
So for the users, to recognize instantly that new offers are available we set a icon or badge to our tab.To set the badge for a tab you have to write a single line of code in which you have to pass the tab index(index of tab where you want to show the badge) and badge Value (number to display inside badge, )Read Full Post »
|Posted by Aman Aggarwal on March 5, 2013 at 5:20 AM||comments (0)|
To display an emoji icon in your app, one did noot require any image just they need the unicode character of emoji icon.
You can get the unicode characters for differeny emoji icons from here
Pass the unicode cahrcter as a tring to your lable or othertext controls and whola! you will see emoji icons.