iphone-sdk-3.0

iPhone OpenGL ES missing functions should be there - glBlendFuncSeparate etc

I'm using OpenGL ES 1.1 on the iPhone, and I'd like to use the following functions: glBlendFuncSeparate glBlendColor With their related constants. These didn't exist in early iPhone GL implementations, but according to this page: http://developer.apple.com/iphone/library/releasenotes/General/iPhone30APIDiffs/index.html they should be...

Replace all white/nearly white pixels in a UIImage with alpha using CGImage?

Hi there, I have a UIImage with white background. I would like replace the white background/pixels with alpha-transparent pixels. I've looked at other questions on StackOverflow, along with Quartz documentation, but have yet to find a coherent "start-to-end" for this problem. How is this done? ...

iphone app with role based login?

Can iPhone apps have role based login? In my application I have to display the content according to the role of the user (employee, visitor). Till now I havent seen any app with role based login for iphone. Can I develop role based login? is there any restriction from apple side for these kind of logins to approve the app? ...

App not installed...because its resources have been modified

One user cannot install my app because they continue to receive the error: The application “myapp” was not installed on the iPhone “myPhone” because its resources have been modified I've read the error occurs because of adding files after the app is built. I have not added any files. Last week, the user could install the ad hoc with...

[iPhone] How to order an array

Hi all, I got an array in my app and I need to order by one of its key. Basically what the app does is taking latitude and longitude somewhere, calculate the distance from my actual position and create an array containing a key called "distance". I'm using myArray sortUsingDescriptors: [NSArray arrayWithObject:[[[NSSortDescriptor...

Compare filedate before download it

Hi, I have an app which is downloading several plist-files when starting the app and storing them in the NSHomeDirectory/Documents/ path. This will take some time and often there is only one file that changed. My questions are: -how can I get the date of the files (the stored one and the file on my webserver)? -how can I compare the da...

download a complete folder

Hi, in my app I use several png-graphics. For the present version they are installed with the app in the folder "graphic". I made while programming. Now I need some more png-graphics and I don't want to make each time an app-update. How can I manage it, that the app is downloading the png-files from my webserver without knowing the name...

Are wrapper classes banned in the iPhone OS Developer Agreement?

Hey everyone, I am a little confused after reading this thread on the revisions to the iPhone Developer Agreement. While it lists the languages that are permitted, I don't understand what classifies as falling under what is banned. Does this include wrapper classes? What if the code is written in Objective C but is not an official Ap...

xcode collect2: ld returned 1 exit status - how to resolve?

From what I have read this is supposed to be when the linker (not exactly sure how that works) can't find a symbol. the symbol in question is: SCNetworkReachabilityCreateWithAddress as can be seen from the full error message below. the thing is that the correct framework is added to my target. xcode recognises the symbol OK, i.e. ther...

Popping UIView crashes app

I'm basically pushing a UIView from a UITableViewController and all it contains is a UIWebView. However when I remove the UIView to return back to the UITableView the app crashes. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view co...

Iphone SDK : Send Email in background in iphone app

Iphone sdk : how to send an email in background from an iphone app. Based on certain selections made by the user I want to trigger an event to send an email to an admin. I am aware of the MFMailComposeViewController but this will open the mail composer window which I want to skip. ...

Core Plot scoping issue in numberForPlot function

My problem is this: I can't seem to access the variable todaysDate from the numberForPlot or numberOfRecordsForPlot functions (see below for numberForPlot), but I can from anywhere else in the file. The NSLog in the viewDidLoad works perfectly, the date is set correctly. If I access the variable from my own class functions, then that's...

What to do with CSV after export on the iPhone?

One of the requested features for my apps is to have an export feature. Most of the time the data is table-like in nature. As an example, users might enter every day what types of food they ate that day, and how many portions of each food type. As the data is table-like, I figure the most useful for export would be into CSV format. Then ...

How can we access the variables declared in another class without using extern ?

Can we access the integer type variables in classB which are declared in classA by not using extern? For objects I used ClassA *obj1 = [[ClassA alloc]init]; And accessed the objects of classA into class B. But, I am not able to do them with the int , float, NSTimeInterval. How can we do for them without using extern ? Thank You....

iPhone SDK 3.0 not displaying error messages

Hi I could resolve this problem just now but assuming others might have the same problem, I post the "solution" here anyway. When building a project in XCode using "Build and Debug" and then running it the iPhone simulator would exit without printing an error message to the console. Like for example I would access an invalid pointer and ...

Core data setReturnsDistinctResult not working

So i'm building a small application, it uses core data database of ~25mb size with 4 entities. It's for bus timetables. In one table named "Stop" there are ~1300 entries of bus stops with atributes "name", "id", "longitude", "latitude" and couple relationships. Now there are many stops with identical name attribute but different coordi...

How to render images in iphone sdk?

hi, I am new in the field of iphone development. I want to render two images with the help of openGL one over the other the first image act as background and on the second image when the user touches then a method will execute. Please help me out how to render these images. thanks in advance ...

What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?

My iPad app was working fine until I opened up IB and started editing the interface. Now, my application:didFinishLaunchingWithOptions isn't getting called. I understand it's an optional function and it gets skipped if it doesn't exist, but in my case it does. What are some reasons that application:didFinishLaunchingWithOptions method...

iPhone SDK: TextView, Keyboard in Landscape mode

Hello. How do I make sure that the textview is shown and the keyboard is not obscuring the textview, while in landscape. Using UICatalog I created a TextViewController which works. In it there are two methods for calling the keyboard and making sure that textView is positioned above the keyboard. his just works great in Portrait mode. ...

iPhone vertical toggle switch

I'm trying to create a vertical toggle switch control for the iPhone (along the lines of UISwitch but vertical sliding). I was wondering whether an existing control already existed or if there are any good tutorials that explain the basics of creating custom controls for the iPhone. Currently I've tried using affine transforms to creat...