iphone

When and how to add an Available on the App Store badge to my iphone app presentation site?

I'll release an app in a few days, but one thing I wonder is this: 1) How and when do I get that special link to the App Store? 2) Any way to set up that badge shortly after submitting the app? Or must I first wait until it's approved and published on the store, then search for it on iTunes and then copy the link? ...

iPhone - cancelPerformSelectorWithTarget not working

If I do this in a subclass of UIView: [self performSelector:@selector(doSomething) withObject:nil afterDelay:5]; Then cancel it like this (I've tried both versions): [[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self]; //[[NSRunLoop mainRunLoop] cancelPerformSelectorsWithTarget:self]; The "doSomething" method still...

Iphone phone number formatter for international numbers

I am looking for a way to easily format numbers for contacts. Many of the contacts have international numbers and i would like them to appear properly formatted. I have noticed the iPhone contact list fails to perfectly handle all numbers. One of my team members is in Thailand, with a country code of 66. When I type in the number, the...

Import data from Excel File to Core Data

hi, I have thousands of students records in Excel sheet. Now i will import that all data into Coradata [from Excel sheet to Coredata] and i will create my IPhone application using that coredata. I dont have any idea, how to import excel file data into coredata. If anybody knows the steps, please help me. Thanks. ...

Dealloc method not being called in dismissModelViewController ?

Hi all, My modal view controller is not calling its dealloc method when it dismisses itself. I have presented it using : ViewController * vl = [[ViewController alloc] initWithNibName:@"ViewController" bundle:[NSBundle mainBundle]]; self.viewLink = vl; [mainMenu stop]; [mainMenu setCurrentTime:0.0]; [vl release]; [self presentModal...

Mac iPhone Simlulator running very slowly when Core Location tracking is enabled

I have an iPhone program using Core Location. When I run it on the simulator - the simlulator seems to run very slowly. By this - I mean mouse movements are very slow and jerky. I can see no noticable difference however in CPU utilization, network or disk activity, etc (on the simulator or the Mac itself). This problem only happens when ...

iphone tableview index config

Hi all, I have a tableview with 2 sections. - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { NSArray *listArray = [@"Save|Hist"componentsSeparatedByString:@"|"]; return listArray; } The index that I would prefer is these 2 sections to be located in the center of the index instead of one at the top and...

Correct way to release NSTimer ?

Hi all, What is the correct way to release a NSTimer in my dealloc method ? It was created with the following code ? -(void)mainTimerLoop { mainTimer = [NSTimer scheduledTimerWithTimeInterval:1/10 target:self selector:@selector(gameLoop) userInfo:nil repeats:YES]; } Thanks, Martin...

Height and width on iPhone (/iPad)

This is just a test application, There is only a AppDelegate class to create all I did was create a Window based app, set the supported orientations to only the landscape in the info.plist, and then add the following code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ...

Adding a refresh UIBarButtonItem to a UINavigationController loaded from a NIB

Hi all, I'm a complete iphone/obj-c noob, and this site has proven invaluable for finding my way around the platform. I have a UINavigationController loading in the first tab of a UITabBarController. I'd like add a refresh button on the right side of the UINavigationItem. My dim understanding is that one has to set properties like tit...

Test iAds showing up in Live iPhone application?

I have a version 1.0.1 that is live right now. I submitted version 1.1.1 which is currently for waiting for review. I have reset the devices that had test 1.1.1 versions and downloaded 1.0.1 from the AppStore from the device. But, test iAds are showing up on live app. Has anyone encountered this issue? ...

Listening (waiting) for the commands from the server (IPhone, client-server arhit.)

I'm developin' network game, where players would monitor game news in their client app (Iphones). There would be one server (php based service with mysql) and client with preinstaled my app. Each user will send (may not to send) information about their location to the server (that is easy) and server will write it to the game's database...

Iphone : Getting the Form Param using UIWebView

Hi all, I'm working on a app which will use a uiwebview to submit a form. I wonder if it's possible to catch the post and parameters then reuse them to set a calendar event for ex. I mean : - fill the form (in webview) - submit the form (in webview) - catch form parameters and fill calendar event (native iphone framework). Is it possi...

How to get Duration from AVPlayer (Not AVAudioPlayer)?

I would like to make a UISlider(scrubber) for my AVPlayer. But since this is not an AVAudioPlayer, it doesn't have a built in duration. Any suggestion on how to create the Slider for fast forward, rewind and progress of the playback? I read the doc on AVPlayer, it has a built in seekToTime or seekToTime:toleranceBefore:toleranceAfter:....

Why doesn't my app ask to use the user's current location when it's downloaded from the App Store?

Hello. I just got my first app approved on the App Store (Woohoo!) and it runs slightly differently depending on whether it's installed from my development machine or the App Store. When I install and run the App in release mode from my development machine, the app opens and asks the user if it can use their current location. When I i...

What is the most efficient way to update the value of all or some managed objects in Core Data in Objective-C

I've googled and researched but am not able to find the best way to iterate through all or some managed objects in my Data Model and update an attribute value in each of them, in my situation, update to the current date. The managed object context and persistent store delegate methods are all in my Application Delegate. I could add som...

ios how can you tell if phone is in cellphone range and can send a txt

On iphone - how can you tell if you can send a txt - ie if you are in cellphone range [MFMessageComposeViewController canSendText] actually seems to mean "Could I send a txt if I was in range" and CTTelephonyNetworkInfo *carrierInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = carrierInfo.subscriberCellularProvider;...

Can anyone give me a simple explanation of how to implement twitter's OAuth in an iPhone app

I've found a handful of libraries, which claim to be plug'n'play, but without understanding how OAuth even works, I am not confident in my ability to fix any bugs that arise. Could someone please just give me an OAuth For Dummies lecture here? ...

Body moves too fast after ApplyLinearImpulse()

I have top-down game for iPhone (no gravity) and I'm using Cocos2d and Box2d. I try to move a bullet by this code: // 'targetPosition' is a point of touch b2Vec2 touchInWorld = b2Vec2(targetPosition.x/PTM_RATIO, targetPosition.y/PTM_RATIO); b2Vec2 direction = b2Vec2(touchInWorld.x - ballBodyDef.position.x, touchInWorld.y - ballBody...

Warping an image on the iphone with OpenGL

I am fairly new to programming and I'm doing it, at this point, just to educate myself and have fun. I'm having a lot of trouble understanding some OpenGL stuff despite having read this great article here. I've also downloaded and played around with an example from the apple developer site that uses a .png image for a sprite. I do eve...