iphone

The executable was signed with invalid entitlements

Hi to all, I have made a app but I am unable to deploy on my device because every time it show an error The executable was signed with invalid entitlements and stop deploying plz tell me the procedure how can I solve the problem. ...

iphone ui view components

hi guys, anyone can give me an idea of what are the ios ui components used in the picture below? especially for the 2nd picture, the lower part is a grouped table (correct me if i'm wrong), what about the upper part? ...

Problems with attach JSON on FBDialog using FBConnect on my iPhone App

Hello, I'm trying to publish a post on the wall using FBConnect on my iPhone App, but I'm having a very stranger issue with the attach JSON. When I use the sample JSON that FBConnect includes it works great, the code is: dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.p...

is there any way to change default frame sizes of an imageView, textLabel and detailTextLabel of cell?

Hi Guys, I am trying to change frame sizes of an imageView. textLabel and detailTextLabel of UITableViewCell property on inside the UITableView. I tried with change the frame size, resizing mask, resizing subviews and so on, but there is no use. Is there any way to change default frame size? and I am using UITableViewCellStyleSubtitle. ...

UIPickerView DataSource and ObjectAtIndex

I have a UIPickerview with three components and three lengthy arrays to populate them. However, I want to selectively populate each component depending on the values selected in previous components e.g. - if component 1 has a value of 4, then component 2 will get populated with the elements 20-40 of its array. And if component 2 has a ...

What are the issues with having a long open connection to a web server from a device connected via wifi?

Hi there I am aware of timeout settings for certain executions over the internet. My iphone application is downloading videos over the internet via a wifi router connection. I've heard that a connection like this shouldn't be open for more than 240secs? Is this true? What dangers/security threats/issues/etc will I encounter the more ...

ViewController Reloading Problem inside the tabbar in iphone

hi i am currently working in iphone application in which navigationcontroller is rootview controller. 1) app delegate file - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UINavigationController *navcon=[[UINavigationController alloc]initWithRootViewContro...

How to rotate and resize sprite like photo in lybrary

How can I rotate sprite around his center in cocos2d in ccTouchesMoved. I found some code, but this not what I need. I need to rotate sprite like photo in Photo gallery app. - (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { NSArray *allTouch = [touches allObjects]; if([allTouch count] > 1){ UITouch *t...

executeFetchRequest crashes on third call

I have a weird problem in my Objective-C code. I have a View Controller where I call my own loadData method in "viewWillAppear". This works cool until the view becomes visible the third time. Than the app crashes without any exceptions or other hints when I call NSArray *storeListArray = [managedObjectContext executeFetchRequest:fetchR...

What does a "_OBJC_CLASS_$_CATransaction, referenced from:" compile-time error mean?

Can anyone please tell me what is this error, I am trying to compile on xcode "_OBJC_CLASS_$_CATransaction", referenced from: objc-class-ref-to-CATransaction in RefreshTableViewHeader.o And this error "_kCATransactionDisableActions", referenced from: _kCATransactionDisableActions$non_lazy_ptr in RefreshTableVie...

Delegate confusion .. How do I find out when several delegates have finished their task?

I've built a basic Web XML to Core Data parsing system, but I am confused about how to set off several parsers at once, and know when they are all done. This is my current setup, which gets just one parsed xml file ("news"). But I have several xml files I need to parse ("sport", "shop" etc). How would set all of these off, and know when...

animation blocks infinite loop - iphone

I'm having difficulty working with the animation blocks. I'm trying to have the first animation change the alpha of an image so that it flashes, then after 10 seconds disappears. the firstAnimation then moves to secondAnimation which does the same thing only to a different image. the process then repeats itself infinitely. I've been wor...

UIPickerView with Date only rotating in one direction

I got a strange behavior with an UIPickerView: I try to show an Date Picker within an action sheet. Everything works well, except that the wheels are only rotating in one direction at first! If you start rotating up and change the direction to down - it works. But when you try to start rotating down, the picker won't move. Here is my ...

Split function in objective-c (card game)

Hi, i'm beginner in objective c, i'm creating a card game for iPhone and I've a problem with a function: I create a deck of cards, shuffle it and now I need to split the deck in 4 hands (for the 4 players) Here is my function : -(void) split(int i1, int i2, int i3) { NSMutableArray *list1; NSMutableArray *list2; NSMutable...

Receiving Memory Warning Level =1, Level =2 And Then Crashes

Hi All, I am Trying To Develop An TilesGame And I Am At The Last Stage. But My Project Begin to Show Unexpected Behaviors. At Random Times It Shows Memory Warning Level =1, Level = 2 and Then, Program received signal: “0”. Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown er...

Does Iphone sdk supports multi-party calling?

Hi guy's I need a clarification that whether Iphone sdk supports multi-party calling? Anyone's help will be much appreciated. Thanks to all. Monish. ...

NSPredicate in NSFetchedResultsController acting strange

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"List.name == 'kristof\\'s list'"]; Works as expected. However I want do something like this: NSString *listName = [[[detailItem valueForKey:@"name"] description] stringByReplacingOccurrencesOfString:@"'" withString:@"\\'"]; NSPredicate *predicate = [NSPredicate predicate...

UIImage not displaying under UIScrollview

This is pretty simple but I cannot figure it out. I am trying to display an image which you can simply slide around the screen. For some reason however, i'm simply getting a white background. header #import <UIKit/UIKit.h> @interface ScrolliPadViewController : UIViewController { UIImageView *imageView; } @end ...

NSFetchedResultsController with NSURLConnection

I have a User class and want to display many users' thumbnails w/ their name overlayed & a green dot overlayed if they're online, etc. in a grid-like tableView (like Grindr, similar to iPhone's Camera Roll). First, I fetch a JSON array of user data for the nearest (geographically) 20 users from the server. Then, I parse the JSON and ins...

How can you track motion using the iPhone's camera?

I saw that someone has made an app that tracks your feet using the camera, so that you can kick a virtual football on your iPhone screen. How could you do something like this? Does anyone know of any code examples or other information about using the iPhone camera for detecting objects and tracking them? ...