I'm currently writing an MobileSubstrate plugin (code injection for iPhone). It gets the hostname by hooking into connect() and this piece of code:
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#endif
int error;
char hostname[NI_MAXHOST] = "";
error = getnameinfo(serv_addr, addrlen, hostname, NI_MAXHOST, NULL, 0, 0);
if (error ...
Apple clearly states in their Introducing Store Kit video in the iPhone Dev Center that we should:
"Keep a copy of the TransactionID along with the Customer
Information in your server in the
cloud. This way if the customer
mistakenly deletes your application,
you have a mechanism for recovery. You
can check your server on ...
This is a question about some openGLES spookiness on iPhone.
I've noticed that the color of pixels on device and the color of pixels in simulator vary slightly. For example, a green pixel might be (0,241,0) in simulator and (0,239,0) on device. This wouldn't be a big issue normally (to the naked eye they look exactly the same) but I'...
I'm using the quartz rendering engine to display a PDF file on the iphone using the 3.0 SDK. The result is a bit blurry compared to a PDF being shown in a UIWebView. How can I improve the quality in the UIView so that I don't need to rewrite my app to use the UIWebView. I'm using pretty much close to the example code that Apple provid...
I'd like to recreate the effect that the UITabBarController is doing with images in the tab bar, using exactly the same images. I've futzed around with a number of ideas using masking, but I haven't come up with anything satisfactory.
Anyone have a recipe for doing this?
...
How to add progress bar in Navigation bar like SMS sending progress .
i am developing iphone app and want to show file upload progress bar in top navigation bar like iphone sms message sending status bar . Pls advice me how to do . Thank !!!
...
I'm trying to make a homepage I'm creating look good on the iphone. But even though the content on the page is only 320px in width, the page is still zoomed far out in the iphone browser. What must you do for safari to display the page in its "real" size?
...
hello i tried adjusting the product name value like this -> string but when i build the program the name does not change is there a trick to it?
...
Hi,
I am trying to better understand touches by writing a few liner which which would track touches:
- (void)drawRect:(CGRect)rect {
NSLog (@"My draw");
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2);
CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);
CG...
I have a table containing images and buttons. Each button has a tag with a different number. All buttons execute the same method when clicked. I will use the button's tag on the method they run, to know which button was clicked.
The problem is that the button's tag being reported is wrong. I imagine that as the cells are being reused, s...
I'd like to load a plain UIView, a UIWebView and a UITableView all in the same nib. Is that possible in the same UIViewController? Is it possible to assign multiple UIViewControllers to the same Window?
...
I'm looking at adding proxy support to my iphone svn client. When you set up a system wide vpn in the iphone settings you can add a global proxy. Is it possible for external apps to read this information through the api?
...
How can I sniff packets from my iPhone on my network? can someone give me some instructions? I tried Googling, but nothing teaches how to sniff iPhone packets、
I am on windows.
...
If I try to set a watchpoint I get a gdb error:
"
can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet
"
Then it seems to corrupt the device (on restarting the device it complains that the OS is too old for the SDK, even though it's OS 3.1.2).
I've got a bug to track down that really would be easy to track down ...
Since upgrading to Xcode 3.2.1, I've experienced a strange issue that has really killed my workflow. The issue only exhibits itself under my own user account (the same project opened by a different user works fine). Therefore, the heart of this question is, "what does Xcode load from the user directory that could conceivably cause this i...
I've been trying to determine the cause of this error for days now. Tried doing simple projects by I could not get the unit tests to work? Does anyone know how to solve this problem?
Building target “ChildTests” of
project “Person” with configuration
“Debug” — (2 errors) Linking
/Users/me/Desktop/Person/build/Debug-iphonesim...
I have an iPhone application that adds new contacts via the Address Book Framework.
Is it possible to programmatically add a new or existing contact to the phone "Favorites" list?
If it is possible, pointer to doc, code or API please?
...
how to know my iphone device is registered or not for applepushnotification service?
...
Hey Guys,
So I'm starting to work with openGL, been following the tutorials over at Jeff LaMarche's blog and I've run into a problem when trying to draw a square using the GL_TRIANGLE_STRIP mode with glDrawArrays.
It works, by that I mean that I can draw a square, but I get this weird drawing glitch. You can see it here:
I'm using t...
Hello,
While creating any iPhone application, which is the best way in terms of UI design (considering the end user view perspective), to provide multiple choice options to user, from which he/she can choose one option. The UIPickerView controller is available but not efficient enough in terms of UI display.
Also the controls available...