iphone

Free Ram Xcode (iPhone SDK)

Hey, I am having some trouble finding out how to free ram on the iPhone using Xcode and the iOS SDK. If anyone could give me a hand doing this that would be great. Thanks in advanced. ...

UITableview fixed content group sections based on array size

I have a dataset that I wish to display in fixed size grouped sections. The sections each consist of three rows, a header, a switch and a text field. Each section represents a dictionary (constructed from my coredata 'records') The number of 'groups' that I need to display depends on the count of objects stored in my coredata store. T...

Shrink and Crop a UIPickerView in iOS4

How do you shrink a UIPickerView in iOS4? Nothing works for me: - Changing the frame value in the .xib as text - Setting the frame I can shrink using a transform, but I want to hide the background and see only 3 or 1 rows. Yes, this question has been asked before .. http://stackoverflow.com/questions/3209895/catransition-how-to-clip-to...

When does App Store promotional code become effective?

Hi, I just submitted my app to the App Store and it's in the reviewing process (3 Degrees of Wikipedia). I have set the "Availability Date" to a future time as some blogs want to cover my app, and I want the release of the actual app come out at the same time as the reviews. My Problem is: will the promotional code work for the blog re...

keeping track of accessed objects in CoreData via objectID?

I want to have table in CoreData that holds a list of other CoreData objects I have accessed, for instance I have Clients and I want a table RecentClients that is simply holding this list and the date they were accessed. Can I store the objectID and then do a fetch request based on that? EDIT: See Ben's answer below and then go here: h...

iPhone Auto hide - non modal message

I want to show a window with no buttons after every game is finished, to inform the user about the number of points he has earned after the game. I want it to look like the GameCenter's welcome back window. Transparent, non modal, with no buttons. What is the best way to do that? Thanks ...

iphone - question about over-releasing

In any iphone template UIViewController class you will see this: - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } But if I set self.myOutlet = nil in viewDidUnload, and I also have [self.myOutlet release] in the dealloc method, isn't that over-releasing self.myOutlet, s...

iAds crash in AdWhirl

I'm implementing AdWhirl for the first time, and it is using iAds, AdMob, and MillennialMedia. AdMob and MillenialMedia seem to work perfectly fine. iAds load, display, and refresh just fine in my PlayViewController, but when I click the back button to go out to the main menu, the simulator crashes, with no error printed to the Console...

iphone animation: How can I move a UIView with animation where the movement accelerate and slow down?

Hello all. In UIScrollView, we can scroll the view and it has a accelerate and decelerate effects, also including bouncing. Can anyone tell me how to animate view's move like that? say, I have a imageview on screen, if I want to "throw" this imageview to somewhere, how can I animate the movement of the imageview with that accelerate f...

Modal View In TabBar iPhone App

Hi, I have TabBar app that loads several .xib files. In one of the views I am trying to load a modal view to compose an email in the app over the the view. I am using - (IBAction)buttonPressed { MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; [controller setSubject:@"Email Subject"]; ...

How to create and draw a visual swipe gesture...

I'd like to try implementing a visual swipe for an iPhone project, like they do in some games, like Fruit Ninja. As you drag your finger around the screen, it leaves a trail that disappears after a while. I would think that you could have a fixed number of points in the "chain" and as new points are added to the front, old ones are rem...

Moving object graph between a new iPhone app and a new Rails 3 backend

I know this question has been answered a million times over the years... but times, and technologies, change quickly...so looking for "fresh" data ;-) I'm seeking advice on a robust, and relatively straight forward, approach toward moving fairly complex objects from a Rails 3 back-end to an iPhone 3(4) app. There is no pre-existing API ...

How to stop a UITableview from scrolling horizontally?

For some reason my iOS UITableView is scrolling horizontally. Any ideas why this may happen? Thanks. Edit: It seems to be the result of repositioning the table in code with screen reorientation. So I guess the question is: how do I reposition the table and not get the horizontal/diagonal scrolling? ...

Exporting tabular data in Numbers-readable format

I have app that exports data in CSV. Recently I added "Open In..." feature for opening .csv files in other apps. I would like to be able to have Numbers (on iPad) open exported files as well. Trawling through Numbers's Info.plist, I saw that it supports four document types: com.apple.iWork.Numbers.sffnumbers com.apple.iWork.Numbers.nu...

Async image downloader

I have write a little class to perform the download of the images by using an NSURLConnection. The idea it's to delegate the download to this class to avoid to block the execution. So I pass the target UIImageView (by ref) and the url to the function and start the download: -(void)getImage:(UIImageView**)image formUrl:(NSString*)urlSt...

Objective-C property release error

Hi, what could be causing this crash? From everything I've read, I'm using the property correctly. When I call the method loadDot2Dot a first time, it works fine. Then when I go back to the main menu (call loadMainMenu) and try to load the dot2DotVC again (call loadDot2DotVC again), I get a crash (Exc_Bad_Access) - with no further info. ...

iPhone 4, Push Notifications At Night Time, Any Way to Stop?

Hi, I'm wanting to know if there's a way to stop push notifications, or at least stop their sound during nighttime? I don't want to silence the phone, because I need the alarm to sound in the morning. It'd be nice if I could specify that push notifications should only come through between certain hours, or be quiet during the night... ...

How can I control which files are included in the application bundle?

If I include files in my Xcode project, how can I control or specify which files are included as a part of the application's bundle? For example, all the PNG files I add to the project always wind up in the bundle. Conversely, the .m and .h files are not. How can I control or specify which are or are not included? If I through in some...

Comparison operators not functioning as expected

Hello! I have a set of checks to perform certain tasks. // tempDouble is a (double), hour is an int if (tempDouble > 60.0 && (hour >= 6 || hour <= 17)) { //CLEAR NSLog(@"CLEAR"); } else if (tempDouble > 60.0 && (hour < 6 || hour > 17)) { //NIGHT_CLEAR NSLog(@"NIGHT_CLEAR"); } else if (tempDouble <= 60.0 && (hour >= 6 || hou...

mapkit annotation error correction on iphone

i have 4 annotation with same lat/long as they are pointing some location in 1 building , since they share common lat/long so i can show only one of them on map?? so is there any way to use some error correction so that i can show them Lil side by side?? here is my annotation code MKCoordinateRegion SecondRegiona; SecondRegiona.cente...