For some reason Xcode's Refactor is always disabled. I used to be able to activate it via selecting a class name and right clicking in the editor to select it. But now no matter what I do, it remains disabled. Any idea what's going on?
...
Would it shed more light if I told that fetchHTML was being called in a seperate thread? I am also seeing several messages in the debug console such as:
_NSAutoreleaseNoPool(): Object 0xd92860 of class NSCFDictionary autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0xd92800 of class NSCFString autoreleas...
Hi all!
I have a UISegmentedControl and whenever I touch a button it should show an alert with the index of the segment currently selected:
- (IBAction)bOkayTouched:(id)sender
{
NSString *msg = [NSString stringWithFormat:@"%@", [scRPSSL selectedSegmentIndex]];
UIAlertView *lol = [[UIAlertView alloc] initWithTitle:@"Mkay" messag...
If i do a custom cell, is it best practice to...
put icons and labels all on one view and drop it to the contentView (assuming you want everything to shift in edit mode)
or
put all editable stuff (labels) on one view, and non editable (icons) on another view and drop them to the contentView
or
it doesn't matter because when the label t...
Hello, I am making a basic platform game for the iPhone and I have encountered a problem with my collision detection.
if (CGRectIntersectsRect(player.frame, platform.frame))
pos2 = CGPointMake(0.0, +0.0);
else
pos2 = CGPointMake(0.0, +10.0);
The collision detection is to stop in-game-gravity existing when the player is on a pl...
I am creating a dictionary-style app that presents a tableview full of words, and when a word is selected, a UITextView is displayed that shows the definition of the word. What I would like to do is add a line that says "See also: synonym1, synonym2" where synonym1 and synonym2 are links that will take the user to the definition for the...
How can i take an UIImage and give it a black border? (iphone)
tnx
...
Im new to iPhone development, I bought the certificate a while back and have already posted one simple app on the app store(Lunch Money, just in case you are curious), but I've been looking all over the internet for a good series for iPhone openGL ES(2d or 3d will work) game development... does anyone know a good starting point for iphon...
Hi,
I have two tabbar items(views) that use the same data, whats the best solution for getting the data?
Make two fetch request for the same
data in each view controller.
Make one fetch request in
appDelegate, and use
sharedApplication to get to the data
in appDelegate. I can use KVO and
notifications to notify the views if
the data h...
In my iPhone application, I need to let user to clip user-supplied UIImage by given dynamically generated CGPath.
All that is outside given (closed) CGPath should be clipped out, and the resulting image should be trimmed by path's bounding rectangle.
Image should be clipped with soft border. That is, there should be a soft gradient in ...
Is it possible to write a program that will change the phone numbers a mobile phone redirects calls to if it cannot be reached by the network?
...
I have an application built for iPhone 2.0 but I would like to use StoreKIT to offer in-app purchase.
If I recompile the code under 3.0, I can use StoreKIT but I will piss those who bought my app and do not upgraded to 3.0.
Is that a way to create a code that can work on both worlds? If yes, what steps should I follow?
thanks for an...
I am contemplating using Box2d for making iphone apps, but I don't want to worry about Apple rejecting my app for using Box2d. How does box2d work?
http://www.box2d.org/
Would Apple somehow reject for using this engine? I think I remember someone saying that they have rejected for using 3rd party dlls/etc...
...
Hi All,
I am trying to move a UIView, which is small. My for loop just moves the UIView down 100 points.
This works except it doesn't move until the loop is finished.
I have tried setting
[self.view setNeedsDisplay] and [myView setNeedsDisplay], I have also put the function inside nstimer and nsthread, like seen below
[NSThread deta...
When I make icons for a UITabBar, it applies a gradient to the images. I need to know how to prevent it from having this gradient.
...
Simple Painting:
Fingering the iPhone screen paints temporary graphics to a UIView. These temporary graphics are erased after a touch ends, and are then stored into an underlying UIView.
The process is simple:
1) Touch Starts & Moves >>
2) Paint Temporary Graphics on top UIView>>
3) Touch Ends >>
4) Pass Temporary Graphics To under...
For some reason, I can not seem to change the default position of an image in a grouped tableview cell.
In the cellForRowAtIndexPath method I use the following to load the image:
cell.imageView.image = [UIImage imageWithContentsOfFile:MainImagePath];
I've been experimenting with the following to adjust the position of the image but h...
How can I use a non-default keychain in XCode iPhone project.
I have already tried '--keychain mycerts.keychain' in 'Other Code Signing Flags' in 'Code signing' build settings.
...
I have a UITableView whose contents are dynamically changing, like a FIFO stack. Cells are added to the bottom and removed from the top.
This works beautifully, and I can scroll to the indexPath so that the newest message always scrolls down to the bottom (Like a chat application).
Now.. I want to add a footer to that table section. ...
I can't seem to launch the camera when loading my view. I end up making the user have to find and press a button on the screen just to load the camera (redundant). How can I do this? Code follows:
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
self.imgPicker = [[U...