iphone

From iPhone to Mac programming

I've looked through the site to make sure this isn't a duplicate. Apologies if I've missed something. I've been doing iPhone development for about a year now, and I'm comfortable with Objective-C, Xcode and Cocoa (at least what's used on the iPhone), but programming for OS X seems much more involved. What are some good free resources f...

How to get each pixel position (Coordinate) of a Hollow Character drawn using Core Graphics?

I am using UIView subclass to draw an alphabet using Core Graphics.Using this code only hollow characters are drwan(By Making the stroke color- black color).Here I need each pixel(Coordinate) position of the character.Please give me an idea how I will get each pixel point(Only the black point's pixel value) of the hollow character. Sour...

How to get how much data application have download?

Is there any way to determine the amount of data used by application? My application doing live streaming, is that possible to track the data that user have used to watch streaming? Thanks in advance. Amit ...

A question regarding to the state maintainance

If i have total 10 views such as from 1 to 2, 2 to 3,and same as upto 10 if i go to 5 th view,then i press home button and then i go to another application and then after doing some task ,i go to home button and then i press my application my 1 st view opens but i want to open m...

iPhone application to make voice call

hi all. i am trying to make one iPhone application.. in it i want to add a module to make voice call using this application.(msisdn is our input) is it possible.?. if it is possible ,what is the result in iPod Touch ? 1) any body know how to notify push registory in iPhone..? i can see in some site it is avilable in iphone... by hopi...

[iPhone] How to make a zone where user can tap to do a specify action)?

How to make a zone where user can tap to do a specify action)? same below picture: Please help me! ...

iphone landscape mode slow

The iphone app I am developing in landscape mode is seriously chugging. I put it in portrait for comparison and it appears to run much smoother in that orientation. I am not doing what I'd think is process intensive: a map view, some buttons, some labels, and some quartz drawing, yet some basic quartz animation seriously slows down rea...

How to sort randomly with CoreData

I am using NSFetchRequest to fetch some items, which could be sorted by Popular, or Random. Following the guides, I could sort the items by popularity easily using NSSortDescriptor. NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"popularity" ascending:NO]; NSArray *sortDescriptors = [[NSArray alloc]...

Correct way to add relational data to Core Data

Hi All, I've created two objects in my model, Account and Friend - where 1 Account will have many Friends. I have created these two objects in code also. I am using a UITableView to show my Accounts (all fine), and using a new UIViewController to add a new record. In the new record I am adding the Account details, and getting friends f...

in UITableView, can I have two sections with the cells of each section to be variable length?

and also, by doing that, does it align to the iPhone UI guidelines? ...

Core Foundation respective for isKindOfClass ?

Hi all, Is there any CoreFoundation handy way for checking a class's pedigree like isKindOfClass ? Thank you in advance, Vassilis ...

NSURLConnection offline web page with image(s)

Hey I'm developping an app that download the content of a web page on the iPhone then store it so the user would be able to access it offline. I'm using NSURLConnection to download the page, as is the doc. But it downloads only the HTML code without extra content like images. Even if images are not in a NSData structure, I would like ...

[iPhone]How to customize header of Section in grouped TableView?

To customize cell, we implement class inherit UITableViewCell. Now, to customize header of Section in grouped UITableView (same to below picture), how to do? Please guide to me! ...

iPhone - remove pin annotations of map, but not mine

Hello! I use a MapView and I set annotations on it (purple pins) and my user location (which is a blue circle). Because the purple pin annotations will move, I have to remove and set them new to the map. I set it with: CLLocationCoordinate2D coordinate; coordinate.latitude = 49.2802; coordinate.longitude = -123.1182; NSUInteger count ...

How to get the address of a latitude and longitude in an iphone application

I am getting latitude and longitude using CLLocation. I want to know how I can get the address by using this latitude and longitude. Please help me. ...

presentation layer current position

Hi, I am using the UIView animation to move a ball. But in some conditions i want to stop the animation in between. And same time i am accessing the position of the ball. But it doesn't give the exact position but the some point behind the actual position. CALayer *la = (CALayer*)ball.layer; CGPoint pos = [[la presentationLayer] positio...

iPhone: deactivating Thumbmode for single sourcefiles

Hi! Xcode with GCC 4.2 it seems it's possible to deactivate thumbmode for the whole project, and activate it for single sourcefiles by putting the -mthumb compiler flag in the "Additional Compiler Flags" list of the this file. I'm looking for a way to do the oposite. activating Thumb for the whole project, but deactivating it for some...

iPhone - Switching between local and production environment settings

I am developing an iPhone app which uses a server somewhere to fetch its data. Somewhere in the app's source code I hardcoded the URL to use to connect to. This is fine, except that I don't always want to test using a production server! I don't want to mess with live data, just to test something locally. So I set up a local version of th...

NSDate in full style but without year

I'm working with Objective C for iPhone and have a NSDate that I want to display in full style but without the year. Right now I'm using the code below but it also show the year, and I don't want that. As I want to show the date in the right region format I cannot just delete the year in the end as in some countries the year will not be ...

clear UIWebView Shadow

Is there a way to remove the UIWebView Shadow ? ...