Creating a custom activity indicator in Swift allows you to tailor the appearance and behavior of your loading spinner to fit the style of your app. Here's a step-by-step guide to creating a simple custom activity indicator using UIView Step 1: Create a New Swift File for the Custom Activity Indicator Create a new Swift file and name it RotatingCirclesView.swift . Add the following code to define a custom UIView subclass for your activity indicator: // // RotatingCirclesView.swift // Welcome In // // Created by Praveen Kumar on 05/09/24. // import UIKit class RotatingCirclesView : UIView { let circle1 = UIView ( frame : CGRect ( x : 20 , y : 20 , width : 60 , height : 60 )) let circle2 = UIView ( frame : CGRect ( x : 120 , y : 20 , width : 60 , height : 60 )) let position : [ CGRect ] = [ CGRect ( x : 30 , y : 20 , width : 60 , height : 60 ), CGRect ( x : 60 , y : 15 ,...
1 - A Program in Objective C Method Function Declaration, Definition With Calling.
#import <Foundation/Foundation.h>
@interface SampleClass: NSObject
-(int)max:(int)num1 secondNumber:(int)num2;
@end
@implementation SampleClass
-(int)max:(int)num1 secondNumber:(int)num2
{
int result;
if(num1 > num2)
{
result = num1;
}
else{
result = num2;
}
return result;
}
@end
//Variable declaration
int a;
int b;
int main()
{
//Variable defination
int a = 10;
int b = 20;
int c;
int ret;
c = a + b;
NSLog(@"Value of c : %d \n", c);
f = f/10.10;
NSLog(@"Value of c : %f \n", f);
SampleClass *sampleClass = [[SampleClass alloc]init];
ret = [sampleClass max:a secondNumber:b];
NSLog( @"Max value is :%d\n", ret );
return 0;
}
#import <Foundation/Foundation.h>
@interface SampleClass: NSObject
-(int)max:(int)num1 secondNumber:(int)num2;
@end
@implementation SampleClass
-(int)max:(int)num1 secondNumber:(int)num2
{
int result;
if(num1 > num2)
{
result = num1;
}
else{
result = num2;
}
return result;
}
@end
//Variable declaration
int a;
int b;
int main()
{
//Variable defination
int a = 10;
int b = 20;
int c;
int ret;
c = a + b;
NSLog(@"Value of c : %d \n", c);
f = f/10.10;
NSLog(@"Value of c : %f \n", f);
SampleClass *sampleClass = [[SampleClass alloc]init];
ret = [sampleClass max:a secondNumber:b];
NSLog( @"Max value is :%d\n", ret );
return 0;
}
Object Oriented Programming Feature in Swift
Classes and Objects
Create A Class
Class A{
//Empty Class
}
Create a new instance new Object in a Class A
Class A{
var new = A()
}
//Empty Class
}
Create a new instance new Object in a Class A
Class A{
var new = A()
}
Properties
Class B{
var data: Int = 10
}
}
1 TO 5 - Number Pattern Program in Objective C
(1):-
12345
1234
123
12
1
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=1; j<=i; j++)
{
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(2):-
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=5; j>=i; j--)
{
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(3):-
54321
4321
321
21
1
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j>=1; j--)
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(4):-
54321
5432
543
54
5
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j>=1; j--)
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(5):-
5
45
345
2345
12345
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5;i>=1;i--)
{
for(j=i;j<=5;j++)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(6):-
1
21
321
4321
54321
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=1;i<=5;i++)
{
for(j=i;j>=1;j--)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(7):-
5
54
543
5432
54321
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=5;i>=1;i--)
{
for(j=5;j>=i;j--)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(8):-
1
22
333
4444
55555
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(1):-
12345
1234
123
12
1
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=1; j<=i; j++)
{
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(2):-
5
54
543
5432
54321
543
5432
54321
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=5; j>=i; j--)
{
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(3):-
54321
4321
321
21
1
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j>=1; j--)
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(4):-
54321
5432
543
54
5
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5; i>=1; i--)
{
for(j=i; j>=1; j--)
NSLog(@"%i", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(5):-
5
45
345
2345
12345
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int i, j;
for(i=5;i>=1;i--)
{
for(j=i;j<=5;j++)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(6):-
1
21
321
4321
54321
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=1;i<=5;i++)
{
for(j=i;j>=1;j--)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(7):-
5
54
543
5432
54321
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=5;i>=1;i--)
{
for(j=5;j>=i;j--)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
(8):-
1
22
333
4444
55555
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
NSLog(@"%d", j);
}
NSLog(@"");
}
[pool drain];
return 0;
}
This information is very useful, I truly enjoyed. Thanks for this blog.
ReplyDeleteAppium Training in Chennai
Appium Certification in Chennai
Appium Training
JMeter Training in Chennai
JMeter Certification
core java training in chennai
C C++ Training in Chennai
javascript training in chennai
Well written Blog, I really enjoy reading your blog. this info will be helpful for me. Thanks for sharing.
ReplyDeleteccna Training in Chennai
ccna institute in Chennai
Angularjs Training in Chennai
Salesforce Training in Chennai
ux design course in chennai
PHP Training in Chennai
Web Designing Course in Chennai
web designing training in chennai
Tally Course in Chennai
Thanks for this blog!!!!
ReplyDeleteweb designing and development course training institute in Chennai with placement
PHP MySQL programming developer course training institute in chennai with placement
Magento 2 Developer course training institute in chennai
Well written blog! I enjoyed lot by reading your blog.
ReplyDeleteAngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery
Hello sir,
ReplyDeleteThis code works properly.
How can we exit the output window good work
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai
I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai
ReplyDeletecoin haber - koin haber - kripto para haberleri - coin haber - instagram video indir - instagram takipçi satın al - instagram takipçi satın al - tiktok takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - instagram beğeni satın al - instagram beğeni satın al - google haritalara yer ekleme - btcturk güvenilir mi - binance hesap açma - kuşadası kiralık villa - tiktok izlenme satın al - instagram takipçi satın al - sms onay - paribu sahibi kim - binance sahibi kim - btcturk sahibi kim - paribu ne zaman kuruldu - binance ne zaman kuruldu - btcturk ne zaman kuruldu - youtube izlenme satın al - torrent oyun - google haritalara yer ekleme - altyapısız internet - bedava internet - no deposit bonus forex - erkek spor ayakkabı - tiktok jeton hilesi - tiktok beğeni satın al - microsoft word indir - misli indir
ReplyDeletebeğeni satın al
ReplyDeleteinstagram takipçi satın al
ucuz takipçi
takipçi satın al
https://takipcikenti.com
https://ucsatinal.org
instagram takipçi satın al
https://perdemodelleri.org
https://yazanadam.com
instagram takipçi satın al
balon perdeler
petek üstü perde
mutfak tül modelleri
kısa perde modelleri
fon perde modelleri
tül perde modelleri
https://atakanmedya.com
https://fatihmedya.com
https://smmpaketleri.com
https://takipcialdim.com
https://yazanadam.com
yasaklı sitelere giriş
aşk kitapları
yabancı şarkılar
sigorta sorgula
https://cozumlec.com
word indir ücretsiz
tiktok jeton hilesi
rastgele görüntülü sohbet
erkek spor ayakkabı
fitness moves
gym workouts
https://marsbahiscasino.org
http://4mcafee.com
http://paydayloansonlineare.com
tiktok jeton hilesi
ReplyDeletetiktok jeton hilesi
referans kimliği nedir
gate güvenilir mi
tiktok jeton hilesi
paribu
btcturk
bitcoin nasıl alınır
yurtdışı kargo
instagram beğeni satın al
ReplyDeleteyurtdışı kargo
seo fiyatları
saç ekimi
dedektör
fantazi iç giyim
sosyal medya yönetimi
farmasi üyelik
mobil ödeme bozdurma
bitcoin nasıl alınır
ReplyDeletetiktok jeton hilesi
youtube abone satın al
gate io güvenilir mi
referans kimliği nedir
tiktok takipçi satın al
bitcoin nasıl alınır
mobil ödeme bozdurma
mobil ödeme bozdurma
mmorpg oyunları
ReplyDeleteınstagram takipci satın al
Tiktok jeton hilesi
Tiktok jeton hilesi
Saç ekimi antalya
referans kimliği nedir
İnstagram takipçi satın al
metin2 pvp serverlar
instagram takipçi satın al
üsküdar alarko carrier klima servisi
ReplyDeleteüsküdar samsung klima servisi
pendik toshiba klima servisi
tuzla lg klima servisi
tuzla alarko carrier klima servisi
tuzla daikin klima servisi
çekmeköy toshiba klima servisi
çekmeköy beko klima servisi
maltepe lg klima servisi
özel ambulans
ReplyDeleteen son çıkan perde modelleri
yurtdışı kargo
lisans satın al
en son çıkan perde modelleri
uc satın al
minecraft premium
nft nasıl alınır
Guzel icerik tesekkurler.
ReplyDeletehttps://onlinecasinoglobal.com
betmatik
tipobet
kralbet
kolaybet
betpark
Greetings! Very useful advice in this particular article data! It's the little changes that make the biggest changes. Thanks for sharing!
ReplyDeleteangularjs training in chennai
salt likit
ReplyDeletesalt likit
dr mood likit
big boss likit
dl likit
dark likit
PDAX7
çeşme escort
ReplyDeletebayrampaşa escort
burdur escort
erzurum escort
lara escort
SG0W7
tokat
ReplyDeleteankara
trabzon
istanbul
izmir
izmit
kocaeli
WK7Z
çeşme transfer
ReplyDeletesoulmate ajans
bor yağı filtre kağıdı
yağ süzme filtre kağıdı
HA7WFO