iphone

Shake based application

hi frnz, i am developing an application which deletes rows from a table view when the user shakes the iPhone.i have created a navigation based project. now when the user shakes the iPhone i want that the title of navigation bar should change to "DELETE" and a delete button should appear on the navigation bar on the same view (but th...

rotating View in angle?

hi, i want to rotate my UIview to particular angle and stop that rotation in that angle.any help pls? ...

UITableView header section

Hi Guys I have a list of countries. How can i display my list content under header distinct "A", "B", "C",... like this link: http://c.upanh.com/upload/7/565/CS0.11778589_1_1.png (give me have same example) thank you! ...

adding button to the navigation bar

hi friends, i have a problem while adding button to the navigation bar.. My application consist of two view controllers added to the viewControllers array of a tabBarController. Inturn this tabBarController is added to the viewControllers array of a navigationController. In one of the views i have a textfield for entering dates . On the...

iphone app xml based theming

I am creating theme for my app that is xml based and will be stored in a themes folder of my app. I need to traverse that file and apply theme i.e. set navigation bar styles, tabbar styles, fonts etc. What might be best possible solution for doing this? i have got about 7-8 viewcontrollers that needs to be applied that theme on app launc...

When I really need to use [NSThread sleepForTimeInterval:1];

Hi there, I have a program that needs to use sleep. Like really needs to. In lieu of spending ages explaining why, suffice to say that it needs it. Now I'm told to split off my code into a separate thread if it requires sleep so I don't lose interface responsiveness, so I've started learning how to use NSThread. I've created a brand...

Mail Composer Problem with app ondevice method

hello I am using this code for mail MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; NSString *msgTitle = @"Sample Title"; [picker setSubject:msgTitle]; NSArray *toRecipients =[[NSArray alloc] init]; NSArray *ccRecipients =[[NSArray alloc] init]; NSArray *bccRec...

Where do I set my company name?

When creating new source files xcode adds comments with your name and company name. Where do I set my company name for xcode (not the project). ...

File upload in iphone

Hi, I am developing an iphone application which needs to upload some image files to server.The images needs to be uploaded as binary data.I converted the image to NSData using [NSData dataWithContentsOfFile:filepath]; But i dont know how to convert this NSData to Binary data.Looking for a solution Thanks, ...

Iterate attributes and IBOutlets of a UIViewController

I've a generic UIViewController on my app. All the UIViewController on the app inherits from this generic one. I'm trying to automate the deallocation and releasing of attributes and IBOutlets as properties. I'm doing the first (attributes) on dealloc method and the second (IBOutlets as properties) on viewDidUnload. - (void) dealloc ...

Wrapping aFBConnect in a UIViewController?

Hi I am trying to make FBConnect a bit easier to use different places in my app by wrapping it in a UIViewController that I can instantiate and use. The meat of it looks like this: @implementation ISFacebookViewController @synthesize facebookSession; @synthesize delegate; - (void)viewDidLoad { [super viewDidLoad]; [self.vie...

How to make a call which begin with * in iPhone?

In my application, I want to call the number *111, when I use this URL tel:*111 to call, but can't make call success, please give me some indicate, thank you very much. [[UIApplication sharedApplication] openURL:@"tel:*111"] was not work. but it will work when remove * [[UIApplication sharedApplication] openURL:@"tel:111"]; ...

Best ressources for learning Core Data?

I want to use Core Data on the iPhone. Do you know great tutorials, videos and ressources for learning Core Data in depth? ...

Change the delegate of MGTwitterEngine

Hi I have setup and successfully logged in via xAuth using an extended class of MGTwitterEngine, my question is if I want to pass this to another view controller, how can I change the delegate class, as it is some sort of weak reference @interface MGTwitterEngine : NSObject <MGTwitterParserDelegate> { __weak NSObject <MGTwitterEngineDe...

HTML5 offline video caching in mobile safari

Sorry if this gets posted twice, but Safari crashed while posting the first version, and I don't see it in my profile. Anyway I can't seem to get Safari on the iPhone or iPad to offline cache videos. Everything else gets cached just fine when I go offline. The video file is obviously in the manifest, but I just get the broken arrow. ...

Drawing path by Bezier curves

Hello. I have a task - draw smooth curve input: set of points (they added in realtime) current solution: I use each 4 points to draw qubic Bezier curve (1 - strart, 2 and 3rd - control points, 4- end). End point of each curve is start point for the next one. problem: at the curves connection I often have "fracture" (angle) Can you t...

Can we categorize photos in photolibrary?

Is there anyway to categorize photos in the photolibrary? I want to make different folders in my photolibrary like Friends,Family,US Trip,...etc. ...

iPhone: different icon for homescreen and App Store

I would like to know if the app icon on the iPhone can be slightly different than the one shown in a large version in Apple's App Store. It was discussed in short here: http://stackoverflow.com/questions/28551/tips-for-a-successful-appstore-submission/266657#266657 But I wanted to make sure if anyone has more experience with that. To ...

Simple ViewController / View, remove white bar?

I am just looking at setting up a simple viewController programatically, I have a ViewController.xib file that I have set the background color to RED in interface builder. I have also added the following to my AppDelegate.m @implementation syntax_MapViewAppDelegate @synthesize window; -(BOOL)application:(UIApplication *)application did...

Get next record with Core Data

Hey, I have a tableview which content is managed through core data. When I select a row, a details view is pushed in and shows more information. How can I jump to the next record (the one below the one I selected in the tableview before) through a "next" button in the view ? Same for a previous button, but that should be very similar ......