Wednesday, December 12, 2012

CollectionViewCell - Custom Cell implementation error


When i try to create custom view for collection view i got the following error, even though i connected all controls properly inside the collection viewcell.

2012-12-12 19:14:50.121 sMatcher[13647:11303] porutham cell <NSIndexPath 0x903aab0> 2 indexes [0, 0]

2012-12-12 19:14:50.123 sMatcher[13647:11303] -[UICollectionViewCell lblTitel]: unrecognized selector sent to instance 0x903ca50

2012-12-12 19:14:50.123 sMatcher[13647:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UICollectionViewCell lblTitel]: unrecognized 


Later i have created seperate class file with xib specifically for cell.

I have designed the cell in xib, but still i get the same error above.

Then with reference to this thread

http://www.raywenderlich.com/forums/viewtopic.php?f=20&t=5043&start=10


I have changed my code in viewDidLoad of the main controlller like below

Instead of this

 [self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"poruthamCellV"];

I have changed to this

[self.collectionView registerNib:[UINib nibWithNibName:@"poruthamCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:@"poruthamCellV"];

    

All started working as i expected, what ever i have designed in xib started appearing in the collection view. So seems like we have to register the cell xib file before we use in collection view which is something different from custom table view cell implementation where we no need to do this.


Monday, December 10, 2012

Bannerghatta Zoo - A week end visit in bangalore

This week we decided to spend some time on sunday in Bannerghatta Zoo, bangalore.

From Basavanagudi(From where i live) it is nearly 18 KM.

The day before, I started googling on facilities available in that place and is there anything which i need to know to avoid last minute hitches.

I got fair amount of information, but still it is not upto-date. So just want to update those gaps in my blog.

We started around 9 AM in the morning (After breakfast), the road was not that great, lot of humps and speed breakers. Some how we managed to reach there within 1 Hr 10 mins.

There is no proper sign board to tell you anything about Zoo. You have to ask people.

There was a parking area specific to this zoo, Even though they mentioned Rs.30/- for four wheeler parking,  nobody asked for it. We did not even seen anybody paying for that, So this time it is free of cost for us.

The place is very hot. We almost drank nearly 10 ltrs of water on that day. So take  water as much as you can.

There are lot of shops and restaurants available, but i would suggest to carry your foods to avoid health problem.

Make sure you are at ticket counter before 11AM to avoid delay and crowds.

SAFARI:

As soon as you land,  take ticket for safari + zoo which is Rs.210/- per person.

They are offering another package called "Special Safari" which is cost of Rs.500/- per person.

All are same except the vehicle,  Special safar is a AC coach with bigger size seats and windows.

Both safaris are same, no difference with respect to site seeing. So its upto you.

The safari was really good and thrilling. It was a 40mins trip (It depends on safari driver, some people took one hour).

BUTTERFLY PARK

Once you done with safari, directly goto butterfly park(Rs.25/- for entrance)

Do not expect much here, this is a very simple park with a small butterfly tent, where you get to see some butterflies which you already know them well. Nothing spl in it.

But good place to take photos with full of flowers and shades.


Lunch & Zoo

After butterfly park, you can have your lunch and then goto park. Otherwise if you have people to carry things, then you can get into park and eat there. It is upto you.

If you are planing to take food inside zoo, you ended up carrying that food bags all the way inside zoo.

There are very nice shadows inside the zoo where you can relax and eat food.

There is a shop inside zoo where you can get samosa, tea , milk etc.

WIth respective to zoo, most of the animals are very old,  I did not impressed much actually, but kids can enjoy it.  Few places are stinky.

Boating

If you really want to do more workout , you go for boating. ;).
Yes, by the time you finish everything and reach this place, you are almost done for the day. 

Boating is not that good, very boring, probably kids and couples can enjoy.

So over all it was a nice time with family and friends. You will get nice sleep in the night for sure.

Things you can carry:
1. Water (as much as you can)
2. Cap (if you want new one you can buy over there )
3. Camera (With good zoom options)
4. Food (If you don't want to try outside)
5. kids trolly (if you have kids)
6. Sun glasses and cream for UV protection

Be in casuals, probably T-Shirts and shorts is a good choice.












Friday, December 7, 2012

sMatcher - My First App for iOS


Hi All,

I am very happy to inform you that, my first iOS app is Live in AppStore now.

I have developed a app namely "sMatcher"(Star Matcher) which is basically a tool which will help Bride and Groom to identify the match(Porutham) based on their Birth Star and Rasi.

Normally in south india, this will be the first step in each and every marriage before even considering the profile.

I Had som experience on this during my marriage.
we used check with astrologer almost every week to find out whether the profile is matches or not.
Most of the time he used to tell that birth star is not matching so no need to look into this further.

So i was curious to know the logic like how he is determining that, then ended up googling it.

I have spend nearly 2 months on this research and got the algorithm to calculate it. I have applied all those algorithm into my program and developer this "sMatcher" app.

Every astrologer having their own logic for this, but most of them are common, only few things which will differ depends on their believes.
So in this tool i have implemented the algorithm which is commonly used across the india. You may see difference on the result if you check this with astrologer, please bare with me.

But definitely it will give you a high level result and view on your match(porutham).

Please let me know if you have any suggestions on this.





For reference: