iphone

Most cost effective way to target multiple mobile platforms

Hi I have been given the tasks of speccing a mobile application, which will need to run on approx. 1000 devices. These devices already exist, and consist of iPhones, BlackBerrys, Androids, Windows Mobile and Netbooks. The application will have simple reporting capability, and a collection of forms. Anyway, the obvious solution would be...

How to call JSON asynchronous in xcode/ iphone develope

I'm using the JSON framework hosting on Google. What and it's a news app that loads JSON feeds, when app goes off to load the feed I want to display the UIActivityIndicatorView but I've found my JSON Access code is not being called asynchronous which is locking the user interface. I have highlighted the function in the code and can't fig...

Image Size for Animation!

Hi Everybody, I m new to iphone app development and i need some help. I have a list of 30 images that i have to animate and display with 0.1 second interval. I put all the images in an Array using this imageletter.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"1.png"], ...... ,nil] And then animate it using these...

Add shadow to uiImage

Hi all, Please guide me that how i can add shadow to a uiimage in objective C. Regards Abdul Samad ...

How to calculate end-point at a given center plus an radius and angle?

I'm trying to do some basic quartz core drawing with arcs, but have an tripple-F in math ;-) I have a point: CGPoint center = CGPointMake(100.0f, 100.0f); CGFloat radius = 50.0f; CGFloat startAngle = 20.0f / 180.0f * M_PI; CGFloat endAngle = 150.0f / 180.0f * M_PI; CGContextAddArc(c, center.x, center.y, radius, startAngle, endAngle, 0)...

Navigation controller and keyboard

I have a controller with textfield and its set to first responder when it display. What i know that the keyboard is the subview of uiwindow. when i pop the controller how the keyboard animating? Is keyboard animate to right with controller? or is that different animation? My problem is that keyboard is not animating with controller. Both...

can we use timer in taps??

i m working on app,in which user taps to shoot bullets, i want user to restrict their taps, like he next tap or touch should be counted after 1 or 3 seconds, is their any snippet,i can use to rtestrict user for continiously tapoping/touch? quick reply is aleways appreciated/ regards shishir ...

Trying to compile MobileSubstrate addon - Undefined symbol

Hi! I went through this tutorial to create a MobileSubstrate addon. I could compile the example hook without errors. But as soon as I add #import <SpringBoard/SBAwayController.h> in ExampleHookProtocol.h and SBAwayController *awayController = [SBAwayController sharedAwayController]; in ExampleHookLibrary.mm (as the first line of...

reloading table

Hi... I've have a table view that consist of item list that depends on the item that were purchased using in app purchasing. My question was how can I reload the tableView when the purchasing was completed/(or when new item was added on my list). The response of the storekit takes time to complete. Are there anyways to tell the app tha...

Proper two-level iPad UITableView

I have an iPad app with split view. In the root view I need to make a two-level UITableView, so the UIWebView in the DetailView shows corresponding content. What I need is to make a two-level UITableView without editing, moving etc, so it can send the name of the selected row in the second level of the table to the DetailViewController. ...

iPhone - is there any way to look at the core data store for a live app?

I've got a live app on the app store that's producing some strange results when the user upgrades versions that I can't reproduce in my dev environment. Does anyone know of a way to inspect the core data store of a live iPhone app? ...

Implementing Tagging using Core Data on the iPhone

I have an application that uses CoreData and I'm trying to figure out the best way to implement tagging and filtering by tag. For my purposes, if I was doing this in raw SQLite I would only need three tables, tags, item_tags and of course my items table. Then filtering would be as simple as joining between the three tables where only ite...

passing text from an Array to UIWebView

hello again , i want to pass some html i have saved as string and stored in an array into a UIWebView. can anyone help me on how to do this because all i can find is how to grab it from the internet rather than already stored data Thanks ...

Localization problems in iPhone

Hi I have been trying to localize my iPhone app in two languages - english and german I have created two folders en.lproj and de.lproj each containing Localizable.strings file for respective language. I have included these files in my resources folder, changed the encoding of these files to UTF-16. I have tried cleaning the project an...

Weird white space between navigationBar and statusBar when autorotate

Hi All: http://www.gamememore.com/li/iphone_q/left.png Now I am try to use UITabBarController to create my app When I first launch the app, the default screen is portrait and it works fine But when the phone rotate to left,there will be a white bar on the top of scrren I don't know the root cause,anyone can give me the comments how t...

How to set that compiler flag?

Shark told me this: This instruction is the start of a loop that is not aligned to a 16-byte address boundary. For optimal performance, you should align the start of a hot loop using a compiler directive. With gcc 3.3 or later, use the -falign-loops=16 compiler flag. for (int i=0; i < 4; i++) { // line with the info ...

Can I submit iPhone applications with same Icon.png but differnt bundle name

Can some one tell me if it is possible to submit two different iphone applications which has same Icon.png but have a different bundle name? I am working on a travel guide app that is targeted for different cities. I want the users of different cities to download the app as per their cities. So I want to submit different apps for differ...

Facebook iPhone SDK: show a progress bar while uploading an image

Hello. I want to show a progress bar while my iPhone app is uploading an image to Facebook. Is it possible? Can I do it with every FBRequest that I make? I also use FBRequest to check extended permission and sometimes takes a lot of time. Thank you. ...

iPhone memory management, a newbie question

Hi, I've seen in (Apple) sample code two types of ways of allocation memory, and am not sure I understand the difference and resulting behavior. // FAILS NSMutableArray *anArray = [NSMutableArray array]; [anArray release]; // WORKS NSMutableArray *anArray1 = [[NSMutableArray alloc] init]; [anArray release]; By "FAILS" I mean I get c...

UITableView section header and section footer not updating (redraw problem)

UPDATE 4.0 Seems like iOS 4.0 changed something here. Same code producing incorrect backgrounds for section header in the described scenario is working with 4.0 according to my first quick check! Original I have a UITableView grouped style with custom header and footer view. Inside the footer I put a UILabel and a UIButton. Clicking ...