iphone

Dynamic creating uiimageview

For my client i get the images from the server and store it in local directories and get the images . in that server they add images while they add images my app dynamically create image view an store images in that imageview...... then i want to get file names of that images.... ...

Brightness without OpenGL call.

Hello All, I am performing Brightness on UIImage with following src code ref. When I check this code with Instrument ,getting memory leak of 1 MB for each brightness call. I am changing brightness with slider. after debugging come to know CFDataRef dataref=CGDataProviderCopyData(CGImageGetDataProvider(aInputImage.CGImage)); is ta...

UIScrollView and presentModalViewController

I add UITableViewController in UIScrollView. When I call MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"Email"]; [picker setMessageBody:currentcelltext isHTML:NO]; [self presentModalViewController:picker animated:YES]; [picker...

UISearchDisplayContoller – can't prevent table reload on typing in search bar

I'm trying to set up a search display controller to handle async results from a web service. I've got the basic bits in place but have run into a really strange issue that I can't figure out. Seems like to rig up the search display controller for async you really just need to do two things: return NO for searchDisplayController:shoul...

How to find out width of truncated UILabel text

I have UILabel, which contains dynamic text. Sometimes text is too long to be shown and thus automagically truncated. How do I find out width of the visible part of truncated text? sizeThatFits returns length of untruncated text, so at the moment I can only detect when truncation will be done. Need to know how much is visible, including...

Problem in XML parsing

Hello i am having problem in xml parsing, here I am not able to get the value of the particular tag. My code is as follows: - (void)viewDidLoad { [super viewDidLoad]; NSString *feedURLString = @"http://www.google.com/ig/api?weather=new+york,ny"; NSURL *URL=[[NSURL alloc] initWithString:feedURLString]; NSString *data=[[NS...

does iphone os framework throw NSException itself?

I know i can throw an NSException in my own code,does iphone os framework throw NSException itself? if it does,means that i should catch the NSExceptions from framework? I know Java throws Exceptions inner SDK,such as unchecked exceptions. ...

How to recenter map on zoom in iPhone

Possible Duplicate: I am using MKMapView in iPhone app. When zoomed the map center changes. I am using MKMapView in iPhone app. When zoomed the map center changes. I need to retain the center. Handling touches event seems a lot of work..... is there any other way? ...

How check font lineHeight ( font.lineHeight) is depricated or not using API (with out checking OS versions)

Hi friends .. i want to check lineHeight property of font is is deprecated or not using respondsToSelector . As respondsToSelector takes only method name .. how can i assign property to it ?? ...

Drawing a Graph in iphone.

Hi all, I am doing an application for drawing a graph. I'm using following code to draw graph. for (int j = 0;j < 5; j++) { UIGraphicsBeginImageContext(self.subView.frame.size); [subView.image drawInRect:CGRectMake(0, 0, self.subView.frame.size.width, self.subView.frame.size.height)]; CGContextSetLineCap(UIGraphicsGetCur...

What is the use of Core Data and why we need it in iPhone development?

Hi friends, What is meant by Core Data in iPhone? Why we need it? What is the basic methods in it? Thanks in Advance ...

Detect if UIKeyBoard is Showing

I'd like to detect whether or not the keyboard is showing. I've found a few other posts that traverse the subviews of UIWindow to find the keyboard, but if that is the only way then I'll figure out something else. I suppose I could also observe the UIKeyboard notifications, but I'm guessing there is a cleaner solution out there. ...

why I can not catch the NSInvalidArgumentException in iphone os?

@try { NSString *a = [NSString string]; [a ggg]; } @catch (NSException * e) { self.user_name = nil; } why I can not catch the NSInvalidArgumentException in iphone os? ...

play a tick sound when one second completes.

I am creating an application,in my app i am changing images for countdown. I want to play a Tick sound when one second completes(i mean when image changes).I have a 25 second long sound with repeated tick sound and within time interval of 1 second. I am new to use sound. can anybody provides me step by step solution for adding sound ? ...

How to present GKAchievementViewController so it will display 1024*768 in iPad?

I am displaying gamecenter achievements using [myRootController presentModalViewController:mAchievementsController animated:YES]; for iphone it is displaying modalView of size 320*480 But for ipad it is not displaying modalView of size (1024*768). How to present GKAchievementViewController so it will display 1024*768 in iPad? ...

presentModalViewController is not work in UIScrollView

I add UIViewController in UIScrollview. I add button and presentModalViewController is calling when the button press. [self presentModalViewController:picker animated:YES]; it can't show properly and NavigationItemBar buttons are hidden in UIScrollView and navigationbar is showing in UIScrollView. I also try like that [self.parentVie...

Navigation between views

I have app with UITabBarController. First tab has UINavigationController and it is UITableViewController. I mean I have tabs at the bottom and in first tab I have a table with possibility to navigate to other views. After touching one of cells I call view with MKMapView if([indexPath section] == 3){ LocationDetailViewController *dvC...

UITableview dequeueReusableCellWithIdentifier false result

I'd done following code, on which I get repeat result from 10 index. (indexPath.row) my data is in Dictionary What could be the reason? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger index = indexPath.row; NSLog(@"Current cell index : %d",index); static NSString *...

Apple pList form of XML can I parse it through Android Java?

Can we parse the iPhone/iPad based pList XML from Java on Android? Please tell me if any such library you have used or know about? ...

Crash when using indexPath.row in a modalViewController

Hi, I've a problem with indexPath.row, when I try to access this variable my app crashes and I get no errors on the console :( the code is this: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller. NSLog(@"%@", ind...