Browse Author: minakshi.bhosale

Another Tryst with USA (Washington DC)

I never imagined my 2nd opportunity to go to USA would knock doors again so soon, it was such an amazing experience that I had in my life. Second time I flew for America from Nanostuffs Technologies. This time I went for Salesforce & iOS integrated based project, located at small but superb place – Bethesda near Washington DC.

With no other Indians seen working around, this was one of a experience to work with Americans & varied culture people. Not notably everyone was very friendly & I came back making a lot of memories & new friends again. It was all fun again to work there in USA.

The best & worst thing both was the Snowfall 🙂 it just made the city look so beautiful but the cold did cause a trouble & discomfort a lot of times as well.

Once again many thanks to Nanostuffs for giving such an immense onsite opportunity !!!

… Minakshi Bhosale, Senior iOS Developer/Consultant @ Nanostuffs.

IMG_1951

IMG_2004

IMG_1956

UIAlertView Deprecated in Xcode6.0

Hi All,

Everybody is curious about changes made by Apple in Xcode 6 and newly added functionalities, here is the one noticeable change which is nothing but UIAlertView and UIActionsheet is deprecated.
Now Apple has introduced a new class for replacement of those – UIAlertController. Let see how it can be used for displaying alertview :

UIAlertController *alertController = [UIAlertController
                              alertControllerWithTitle:@"Title"
                              message:@"Message"
                              preferredStyle:UIAlertControllerStyleAlert];

Buttons can be added by creating instance of the UIAlertAction 


UIAlertAction *cancelAction = [UIAlertAction 
            actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel method")
                      style:UIAlertActionStyleCancel
                    handler:^(UIAlertAction *action)
                    {
                      NSLog(@"Cancel button called");
                    }];

UIAlertAction *okAction = [UIAlertAction 
            actionWithTitle:NSLocalizedString(@"OK", @"OK method")
                      style:UIAlertActionStyleDefault
                    handler:^(UIAlertAction *action)
                    {
                      NSLog(@"OK button called");
                    }];

[alertController addAction:cancelAction];
[alertController addAction:okAction];

Enterprise App Experience at Raleigh, NC (USA)

Woohoo!! It was my first onsite experience ever. I visited THE United States Of America. It was a majestic experience. When got this news from Nishant & Ankita, I was really very excited that ‘I will FLY’ in my life first time. And also was having mixed feeling that how I’ll manage traveling, whether I’ll be able to talk in English the way Americans do, bla bla.

I went for a complex iOS project, client was truly helpful during my stay in States. Client was very much talented and a professional person. I left quite impressed with his application ideas and grasping power of technical terms. Made a lot of American friends and also got opportunity to see an American wedding closely.

Work experience was really awesome and also learned plenty of things. Because of this onsite I got opportunity to roam around marvelous city New York 🙂

This trip built confidence in me to travel alone. I am grateful that I got opportunity to go to USA. All credit goes to Nanostuffs!!

… Minakshi Bhosale, Senior iOS Developer/Consultant @ Nanostuffs.

IMG_1143

IMG_1147

iPhone app icon not showing in iTunes?

 

Hi,

Today I faced this issue, that even I had added the Icon with all the necessary sizes,  but when client opened ipa in iTunes it was not showing app icon.

The solution for this was,

1. Make Icon of 512×512 size

2. Save it with name “iTunes Artwork” without extension.

3. Add it to the application

Create ipa and open it in iTunes.

Now check it will show you the icon in iTunes too.

Simple.

Happy Coding. 🙂

How to unhide Library folder in mountain lion?

Hello,

In mountain lion operating system on mac, I realized that Library folder is hidden. Library folder contains iPhone simulator folder where we can find database while testing application on simulator.

For unhide Library folder open terminal and type below and press enter , you will see the Library folder

chflag nohidden ~/Library/

Happy Coding 🙂

How to make UITextField’s text selected programmatically ?

 

Hi,

For making UITextField’s text selected programmatically you need to set the UITextField’s delegate linke below :

txt.delegate = self;

and then put following code in textFieldDidBeginEditing

-(void)textFieldDidBeginEditing:(UITextField *)textField
        {
           [textField selectAll:self];

         }

And don’t forget to add delegate in .h

@interface ViewController : UIViewController <UITextFieldDelegate>

Hope this will help somebody.

Happy Coding !!!

 

How to add non glossy icon to iOS application?

Hi all,

Let us see how to add non glossy icon to iPhone/iPad applications.

It’s very simple step to follow,

Open Info.plist for your target and add the following property :

Icon already includes gloss effects : YES

Setting this property to YES, shows the non glossy icon.

 

How to keep original orientation of the UIImage..

Hello All,

While working on an application, I was having the client’s requirement that, while displaying an image in imageview the image must be of same orientation same as the original.

After googling, I got the way for doing this.

Here is the way,

UIImage *image; //Here assign the image which you want

UIImageView *imageView = [[UIImageView alloc] init];

imageView.image = image;

imageView.contentMode = UIViewContentModeScaleAspectFit;

Setting this property gives the original orientation of the image.

So simple…

Happy Coding…. 🙂

 

Memory Management in iPhone applications

Hi,

Recently, I came to an issue of memory leakage while developing an application. And that was the frustrating experience. And it taught a big lesson.

Every time I was running application on device, it was crashing the app after some memory warning.

It was the indication that my application was utilizing lot of memory.

In my code, I had allocated lot of arrays but had not released them after their use ends.

Then I realized that memory management is the most important part of the application development.

There is one more way, instead of using lot of arrays we can use an NSObject class with required properties for entities. This makes the code handy and clean. Also this will help us to avoid memory warnings.

Development of an application always needs best memory management to keep running the application smoothly.

Hope this will help you guys..

Have Happy Coding … !!!@@@

Shaking Animation of an UIView

 

Hello friends,

Here we will learn how to add shaking animation to an UIView.

It’s just an CABasicAnimation,

CABasicAnimation* anim = [CABasicAnimation animationWithKeyPath:@”transform.rotation”];

[anim setToValue:[NSNumber numberWithFloat:0.0f]];

[anim setFromValue:[NSNumber numberWithDouble:M_PI/30]]; // rotation angle

[anim setDuration:0.1];

[anim setRepeatCount:NSUIntegerMax];

[anim setAutoreverses:YES];

[pressedImageView.layer addAnimation:anim forKey:@”iconShake”];

In above code, pressedImageView is an UIImageview. This animation can be added to other UIView elements too.

You can adjust the rotation angle, by setting the proper value.

Hope this will be helpful  to somebody.

Happy Coding…!!

  • 1
  • 2

Need more help?

Hi there, was your problem or query resolved? If not & need more assistance, please do reach out to us at info@nanostuffs.com, we'll be more than delighted to help. Nanostuffs has 7+ years of extensive Salesforce & iOS/Android experience.
Holler Box