Making Rounded UIView’ on iPhone
I have started developing (mainly) iPhone apps late 2009 and I feel like I have some experience on iOS platform that I can share. I won’t be doing tutorial serias but just some tips and tricks.
Let’s start with some ui tips, there are 2 ways to make rounded views in iPhone. One is using layers which is inefficient way, second is using quartz in drawRect.
Using layers is really simple;
YourView *vw = [[YourView alloc] initWithFrame:CGRectMake(20, 20, 80, 80)];
vw.layer.cornerRadius = 16;
vw.layer.masksToBounds = YES;
simple. The right way is to handle in drawRect;
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:CGSizeMake(16.0, 16.0)]; //Add a bezier path
[path addClip]; // and clip
Both two will same view.
About iPhone 4S Sim Failure & Batter Usage
There are hundreds of posts & thousands of page views about iPhone 4S Batter Life at Apple Support Forums. A few days, I’ve faced same problems a few days like I had no sim and sim failure errors, network losses and a few hours with full charge ! It seems problem is related directly with Apple but still there are solutions, at least two things worked for me;
1 – Changing SIM card with new one ( currently 64Kb micro sim ) solved network loss and sim failure errors.
2 – Turning off a few location based services;
- Settings -> Location Services On -> Siri Off
- Settings -> Location Services -> System Services -> Cell Network Search & Compass Calibration is On and everything else Off.
The result is surprising, my iphone batter is 70 % with 1 day standby and 1 hour usage.
Update
You can still have 2 days standby with a few hours usage.
Istanbul is Ready For Sale on the App Store
Yesterday, my new iPhone App (extended version of Istanbul Guide) has been approved for sale on the App Store. New App provides more and rich content with additional features such as public transportation lines (metro & trams for now) and weather information for Istanbul.
So far, your ideas helped me to improve the application to be more useful. Thank you for sharing your ideas with me. I’d be happy to see feedbacks.
First Impressions on Istanbul Guide
A few days ago Apple approved my iPhone Application and Istanbul Guide is available to download for free on App Store since 14 January 2010. So far, feedbacks are positive and I’ve decided to go on and improve it, actually I’m going to put the things that I have removed and also, implement some new features.
The first app is developed to learn about platform and the application approval process which was a real pain. I’m hopping the next time, it will be easier to publish an app on app store.
I want to share some data about the app, despite it has been online for 6 days, the application is downloaded almost 1K, yes, almost 1000 times. Most of the downloads come from Turkey and followed by european countries like Denmark, Netherlands and those are followed by the US.
I want to thank everyone who downloaded the app.
Hello World on iPhone
I have played most of the popular application development platforms available today from Microsoft’s .Net to open source platforms on unix/linux with python/php/java/c++ … etc. However, I couldn’t had a change to develop for Mac OS X platforms till having a Mac.
Spending a few weeks (not full time) for learning and developing for Mac OS X is enough and fun. Learning Obj-c is not a big issue but it takes some time to get familiar with the libraries and frameworks. I made my choice to build an iPhone application as a start point and made a simple hello iphone world application and called it “Istanbul Guide”.
Application contains some popular places in Istanbul for the tourists and also, provides some basic information like text, photo and the current distance about locations. As I said app is not a big deal (some screens shown below), wait for the killer ones …
Also working on a page to provide my iPhone App statuses.













![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=1aafb136-3ecf-43a0-8ff4-c33b2c27dc67)

