Wednesday, October 20, 2010
SpeedLimit
Simulator forgatasnak lelassitasa
Thursday, October 14, 2010
Tab Bar + Action Sheet
Friday, September 10, 2010
Async kep betoltes UITableViewCell-be
Friday, August 27, 2010
Wednesday, August 25, 2010
Monday, August 23, 2010
Bottom Bar elrejtese amikor betoltunk egy uj View-t.
Wednesday, August 11, 2010
Josh Highland: Don't use NSLog anymore!
Thursday, August 5, 2010
Wednesday, August 4, 2010
Monday, August 2, 2010
Thursday, July 29, 2010
UIApplicationExitsOnSuspend
Tuesday, July 27, 2010
MPMoviePlayerController vagy MPMoviePlayerViewController
John Muchow: Getting MPMoviePlayerController to Work with iOS4, 3.2 (iPad) and Earlier Versions of iPhone SDK
MPMoviePlayerController Class Reference
- backgroundColor - Get the view from the backgroundView property and set its color directly.
- movieControlMode - Use the “Accessing Movie Properties” property instead.
- MPMovieControlMode - Use the “MPMovieControlStyle” constants in conjunction with the controlStyle property instead.
- MPMoviePlayerContentPreloadDidFinishNotification - Use the MPMoviePlayerLoadStateDidChangeNotification notification to determine the readiness of the player.
Wednesday, July 14, 2010
UISplitViewController MasterView mutatasa portrait modban
[splitViewController setHidesMasterViewInPortrait:NO];Az iPad alkalmazasoknak portrait es landscape modban is mukodniuk kell
Wednesday, May 26, 2010
Monday, May 3, 2010
Mike Ash: Dealing with Retain Cycles
Saturday, May 1, 2010
Validate Build Product
Friday, April 9, 2010
Renaming an Xcode project or executable.
Renaming a project in Xcode 3.x
This seems like it ought to be a simple process provided by Xcode but it is not. Here is how to do it.
1. Copy and rename the project folder
2. Inside the new project folder rename the files ending in .pch and .xcodeproj
3. Right click on .xcodeproj file (it is actually a folder) and select show contents. In the contents folder there should be a file ending in .pbxproj. Open This file in you favorite editor and replace all instances of the old project name with the new project name.
4. Delete the build folder
5. Open the Renamed Xcode project and right click (Control click) on the Target from the groups and files list. Select Info to open the properties panel.
6. Click on the build tab the select packaging from the collection pop up menu
7. Change the value in the product name build setting to the new name.
8. Do Build Clean all Targets.
Changing the executable name
1. Open the Xcode project and right click (Control click) on the Target from the groups and files list. Select Info to open the properties panel.
2. Click on the build tab the select packaging from the collection pop up menu
3. Change the value in the product name build setting to the new name.
4. Do Build Clean all Targets.
Friday, April 2, 2010
isToday
BOOL isToday(NSDate *date) {
NSCalendar *calendar = [NSCalendar currentCalendar];
unsigned unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;
NSDate *now = [NSDate date];
NSDateComponents *comp1 = [calendar components:unitFlags fromDate:date];
NSDateComponents *comp2 = [calendar components:unitFlags fromDate:now];
return [comp1 day] == [comp2 day] && [comp1 month] == [comp2 month] && [comp1 year] == [comp2 year];
}
Thursday, April 1, 2010
copy + paste > 2 release ugyanazon > EXC_BAD_ACCESS
Tuesday, March 30, 2010
Igy kell megkeresni az NSDocumentDirectory-t
The following example illustrates how you can use the NSSearchPathForDirectoriesInDomains function to find the current user’s Documents directory:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
if ([paths count] > 0) { |
NSString *userDocumentsPath = [paths objectAtIndex:0]; |
// Implementation continues... |
NSSearchPathForDirectoriesInDomains simply returns the path of the appropriate directory, it does not guarantee that the directory exists. If you want to perform operations such as writing to the directory, you may have to create it first.
